Package: munin-plugins-extra
Version: 2.0.28-1
Severity: minor

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

Each time I run a long apt command, Munin complains about locks:

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource
temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is
another process using it?

Can be several emails per day.

Here is my attempt to fix it:
/etc/cron.d/munin-node
if [ -x /etc/munin/plugins/apt_all ]
becomes
if [ ! -e /var/lib/dpkg/lock ]; then if [ -x /etc/munin/plugins/apt_all];
untested ...

There is no perfect way to avoid these messages, but adding this simple
test should avoid 99.9% useless messages.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages munin-plugins-extra depends on:
ii  munin-common  2.0.28-1
pn  perl:any      <none>

munin-plugins-extra recommends no packages.

Versions of packages munin-plugins-extra suggests:
pn  libnet-netmask-perl  <none>
pn  libnet-telnet-perl   <none>
ii  python               2.7.11-2

-- no debconf information

Reply via email to