[Bug 1690980] Re: unattended-upgrades does not block shutdown of system, as it is designed to

Brian Murray brian at ubuntu.com
Wed Jul 26 16:17:23 UTC 2017


So far this seems to work, I don't get an inconsistent system while
testing on Ubuntu 16.04, I did notice a crash report in /var/crash from
unattended-upgrades.  Here's the Traceback:

 Traceback (most recent call last):
   File "/usr/bin/unattended-upgrade", line 918, in do_install
     cache, logfile_dpkg, options.verbose or options.debug)
   File "/usr/bin/unattended-upgrade", line 433, in upgrade_normal
     res, error = cache_commit(cache, logfile_dpkg, verbose)
   File "/usr/bin/unattended-upgrade", line 424, in cache_commit
     res = cache.commit(install_progress=iprogress)
   File "/usr/lib/python3/dist-packages/apt/cache.py", line 515, in commit
     res = self.install_archives(pm, install_progress)
   File "/usr/lib/python3/dist-packages/apt/cache.py", line 479, in install_archives
     res = install_progress.run(pm)
   File "/usr/lib/python3/dist-packages/apt/progress/base.py", line 208, in run
     res = self.wait_child()
   File "/usr/lib/python3/dist-packages/apt/progress/base.py", line 279, in wait_child
     self.update_interface()
   File "/usr/bin/unattended-upgrade", line 227, in update_interface
     self._do_verbose_output_if_needed()
   File "/usr/bin/unattended-upgrade", line 244, in _do_verbose_output_if_needed
     os.write(1, os.read(self.output_logfd, 1024))
 OSError: [Errno 5] Input/output error

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/usr/bin/unattended-upgrade", line 1581, in <module>
     main(options)
   File "/usr/bin/unattended-upgrade", line 1468, in main
     logfile_dpkg)
   File "/usr/bin/unattended-upgrade", line 921, in do_install
     os.write(2, ("Exception: %s\n" % e).encode('utf-8'))
 OSError: [Errno 5] Input/output error

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1690980

Title:
  unattended-upgrades does not block shutdown of system, as it is
  designed to

Status in OEM Priority Project:
  Triaged
Status in OEM Priority Project xenial series:
  New
Status in apt package in Ubuntu:
  Fix Committed
Status in unattended-upgrades package in Ubuntu:
  Fix Committed

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



More information about the Ubuntu-sponsors mailing list