In xenial and yakkety, unattended-upgrade can finish security updates after applying workaround 1&2.
workaround 3: If users reboot/shutdown by UI, there will be a pop-up window which asks users for root password. If users reboot/shutdown by command (sudo reboot), unattended-upgrade will be killed and cannot finish security updates. Workaround 1: /lib/systemd/system/apt-daily.service [Service] Type=oneshot ExecStart=/usr/lib/apt/apt.systemd.daily +KillMode=none +TimeoutStopSec=0 Wordaround 2: /lib/systemd/system/apt-daily.service [Unit] Description=Daily apt activities Documentation=man:apt(8) +DefaultDependencies=no +Before=shutdown.target Workaround 3: /lib/systemd/system/apt-daily.service [Service] Type=oneshot -ExecStart=/usr/lib/apt/apt.systemd.daily +ExecStart=/bin/systemd-inhibit --what=shutdown --mode=block /usr/lib/apt/apt.systemd.daily --- the code flow of unattended-upgrades: (1) -> apt_pkg.get_lock() -> do_install() -> (2) If users reboot/shutdown system in (1), unattended-upgrades-shutdown will break from monitoring loop and then there will no message to tell user that security update is ongoing. -- 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/1690980 Title: No pop-up window to warn users that system should not reboot or shutdown while installing security updates Status in OEM Priority Project: Triaged Status in OEM Priority Project xenial series: New Status in unattended-upgrades package in Ubuntu: Incomplete Bug description: Title: No pop-up window to warn users that system should not reboot or shutdown while installing security updates Summary: No pop-up window to warn users that system should not reboot or shutdown while installing security updates Steps: 1. trigger unattended-upgrades 2. reboot or shutdown system while installing packages Expected results: There is a pop-up window to warn users that system should not reboot or shutdown Actual results: There is no pop-up window to warn users Additional information: $ apt-cache policy unattended-upgrades unattended-upgrades: Installed: 0.90 Candidate: 0.90ubuntu0.5 $ lsb_release -rd Description: Ubuntu 16.04 LTS To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/1690980/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp