[Bug 1771135] Re: unattended upgrades always fail b/c dpkg status database is always locked

Julian Andres Klode 1771135 at bugs.launchpad.net
Wed Aug 22 10:02:32 UTC 2018


In any case, there's nothing to do here from the apt side, our timers
don't run at the same time as they have a lock (and u-r-u is run by
them).

** Changed in: apt (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to unattended-upgrades in Ubuntu.
https://bugs.launchpad.net/bugs/1771135

Title:
  unattended upgrades always fail b/c dpkg status database is always
  locked

Status in apt package in Ubuntu:
  Invalid
Status in unattended-upgrades package in Ubuntu:
  New

Bug description:
  Hi,

  (Filing this bug against apt since that contains the systemd timers
  and cron job to start unattended-upgrades).

  I'm using unattended-upgrades on several computers.  On the one that
  is on most of the time, updates work as expected.  On the ones that
  are off most of the time, updates are never installed because there is
  always a "dpkg: error: dpkg status database is locked by another
  process".  Running `unattended-upgrade -d` by hand or using aptitude
  works fine.

  I suspect that because these computers are off most of the time, the
  systemd timers for both apt-daily and apt-daily-upgrade are always run
  at the same time during boot and resulting in the dpkg database being
  locked for apt-daily-upgrade.

  I will try disabling the systemd timers and using the cron job instead
  to see if that fixes the problem.

  FYI I also noticed that the cron job will only run when the system is
  on A/C power, whereas the systemd timers do not seem to have any such
  check.

  Thanks.

  - Felix

  ubuntu version: 16.04.4 LTS
  apt version: 1.2.26
  unattended-upgrades version: 0.90ubuntu0.9

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1771135/+subscriptions



More information about the foundations-bugs mailing list