Okay, I changed the init script /etc/init.d/unattended-updates so that
/usr/share/unattended-upgrades/unattended-upgrade-shutdown is called with
--debug:
Aug 27 12:11:20 janni GetLock returned 4
Aug 27 12:11:20 janni Lock not taken
Aug 27 12:12:59 janni GetLock returned 4
Aug 27 12:12:59 janni Lock not taken
Aug 27 12:14:03 janni GetLock returned 4
Aug 27 12:14:03 janni Lock not taken
in the above script it says (line 78 ff.):
res = apt_pkg.GetLock(options.lock_file)
logging.debug("GetLock returned %i" % res)
if res > 0:
logging.debug("Lock not taken")
sys.exit(0)
# "wait for 5s, try again or bail out with timeout error" stuff
apt_pkg.GetLock documentation says, that the lock is not taken when result ==
-1, otherwise the Fd of the lock is returned. I believe it should be "if res <
0" but I don't usually do python, apt-debugging and people say, this works
in 2.6.31-6.
HTH
--
Unfinished shutdown or reboot
https://bugs.launchpad.net/bugs/418560
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs