Solution:
- fix /usr/share/unattended-upgrades/unattended-upgrades-shutdown to
expect "false" instead of "False"
patching /usr/share/unattended-upgrades/unattended-upgrade-shutdown:
--- /tmp/unattended-upgrade-shutdown 2017-02-03 14:53:03.238103238 +0100
+++ /tmp/unattended-upgrade-shutdown_fix 2017-02-03 14:53:17.685589001
+0100
@@ -117,7 +117,7 @@
# run it
p = None
apt_pkg.init_config()
- if apt_pkg.config.find_b("Unattended-Upgrade::InstallOnShutdown", False):
+ if apt_pkg.config.find_b("Unattended-Upgrade::InstallOnShutdown", false):
env = copy.copy(os.environ)
env["UNATTENDED_UPGRADES_FORCE_INSTALL_ON_SHUTDOWN"] = "1"
logging.debug("starting unattended-upgrades in shutdown mode")
The above solves the issue for me.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unattended-upgrades in
Ubuntu.
https://bugs.launchpad.net/bugs/1661611
Title:
apt/unattended-upgrades stalls shutdown
Status in unattended-upgrades package in Ubuntu:
New
Bug description:
When unattended-upgrades is installed, 9 out of 10 shutdowns/reboots
hang while "starting unattended upgrades shutdown". This hang stalls
the shutdown process for 5-10 mins.
If I disable unnattended-upgrades via the /etc/apt/apt.conf.d/20auto-
upgrades and/or 50unattended-upgrades, the problems occurs.
If I terminate the service before shutdown/reboot (sudo service
unattended-upgrades stop) the problem still occurs.
If I remove the package (sudo apt remove unattended-upgrades) the
problem no longer occurs.
This occurs on a freshly installed version of Ubuntu Server 16.04.1
(both unattended-upgrades installed via install GUI or manual install
of unattended-upgrades)
Both Kern.log & syslog do not show the shutdown process (I believe
because the filesystems have already unmounted)
Original report: http://askubuntu.com/questions/878630/apt-unattended-
upgrades-stalls-shutdown
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1661611/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp