[Bug 1626345] Re: After rebooting for updates, reboot is still required.

Barry Kolts bhkolts at gotrain.org
Wed Oct 12 19:17:56 UTC 2016


Brian,

Yesterday we had kernel updates. My server, which is set to
automatically reboot, reboot fine and no /var/run/reboot-required. This
morning there was no second reboot, so everything was as expected. The I
ran autoremove to remove the stale kernel. Then I had /var/run/reboot-
required and /var/run/reboot-required.pkgs contained linux-base. So I
wouldn't think removing a kernel should require a reboot. So is this a
bug or am I not understand how this should work?

I confirmed this on a second 16.04 server

Attached are the /var/log/apt/history.logs from before autoremove and
after.

** Attachment added: "before_history.log"
   https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1626345/+attachment/4760019/+files/before_history.log

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to unattended-upgrades in Ubuntu.
https://bugs.launchpad.net/bugs/1626345

Title:
  After rebooting for updates, reboot is still required.

Status in One Hundred Papercuts:
  Confirmed
Status in unattended-upgrades package in Ubuntu:
  Incomplete

Bug description:
  Yesterday unattended-upgrades required a reboot for kernel updates as
  expected. But today unattended-upgrades required a reboot even though
  there were no updates.

  2016-09-20 05:20:10,409 INFO Initial blacklisted packages: 
  2016-09-20 05:20:10,410 INFO Initial whitelisted packages: 
  2016-09-20 05:20:10,411 INFO Starting unattended upgrades script
  2016-09-20 05:20:10,411 INFO Allowed origins are: ['o=Ubuntu,a=xenial-security', 'o=Ubuntu,a=xenial-updates']
  2016-09-20 05:21:13,118 INFO Packages that will be upgraded: linux-generic linux-headers-generic linux-image-generic linux-libc-dev
  2016-09-20 05:21:13,119 INFO Writing dpkg log to '/var/log/unattended-upgrades/unattended-upgrades-dpkg.log'
  2016-09-20 05:24:17,405 INFO All upgrades installed
  2016-09-20 05:24:24,959 WARNING Found /var/run/reboot-required, rebooting
  2016-09-21 05:10:54,080 INFO Initial blacklisted packages: 
  2016-09-21 05:10:54,088 INFO Initial whitelisted packages: 
  2016-09-21 05:10:54,089 INFO Starting unattended upgrades script
  2016-09-21 05:10:54,089 INFO Allowed origins are: ['o=Ubuntu,a=xenial-security', 'o=Ubuntu,a=xenial-updates']
  2016-09-21 05:11:02,624 INFO No packages found that can be upgraded unattended and no pending auto-removals
  2016-09-21 05:11:02,624 WARNING Found /var/run/reboot-required, rebooting

  On this machine (16.04 server) unattended-upgrades is configured to
  reboot automatically.

  This also happened on another 16.04 server with default unattended-
  upgrades configuration. It displayed the *******System restart
  required******* message. The same on a 14.04 server and a 14.04
  desktop.

  Expected behaviour: Not to do an unnecessary reboot.

  Let me know what other information I can provide.

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1626345/+subscriptions



More information about the foundations-bugs mailing list