Using your test script on Xenial I discovered that after the reboot I needed to run 'sudo dpkg --configure -a' to finish the operations that unattended-upgrades was doing.
Further testing has revealed that there seems to be something wrong with Xenial while I'd been testing Yakkety. When running your script on Yakkety I saw that unattended-upgrades- shutdown.log was created and contained the following: bdmurray@clean-yakkety-amd64:~$ cat /var/log/unattended-upgrades/unattended-upgrades-shutdown.log 2017-05-24 14:56:03,095 WARNING - Unattended-upgrade in progress during shutdown, sleeping for 5s Progress: 50.1385 % (linux-headers-4.8.0-52) 2017-05-24 14:56:08,110 INFO - All upgrades installed While on Xenial unattended-upgrades-shutdown.log was an empty file and I did not see anything on the shutdown screen about the shutdown being paused. Could you confirm that Yakkety deals better with a reboot while unattended-upgrades is running? Thanks! -- 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: In Progress 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