File /var/run/reboot-required not present after kernel update

Ubuntu Version:
24.04.1

Desktop Environment (if applicable):
no desktop: server

Problem Description:
I have enabled pro (and livepatch). After a kernel update (needrestart see it), the /var/run/reboot-required file is not present. I need it to properly remote-check and manage the machine(s)

Relevant System Information:
pro and livepatch enabled, unattended-upgrades enabled

Screenshots or Error Messages:

What I’ve Tried:
Nothing yet


Do you mean a kernel update or a completely new kernel version?
The two are very different and if it is an update of your existing kernel which I admit does not occur often, a reboot may not be needed.
If a new kernel is installed a reboot is necessary to start using that new kernel.

On my installs of Xubuntu 24.04 fully updated I do still see the presence of the reboot-required when a new kernel is installed during updating.

I update and upgrade only in terminal using an alias for the upgrade part of the activity
alias ug=‘sudo apt upgrade && ls /var/run | grep reboot-required’
This has always worked for me so I wonder why you’re not seeing it.

I have a similar problem on two PCs I look after. It started whilst they were on 22.04 (Ubuntu).

I have unattended-upgrades enabled and Livepatch, but no Pro. Unattended upgrades is set to send an email, and these used to say Reboot Required. At some point the emails stopped flagging up that a reboot was required, as did the creation of the reboot-required and reboot-required.pkgs files. This happened with the kernel update yesterday (6.8.0-52).

As far as I can see, there is no setting in 50unattended-upgrades that would affect this, and in any case that file hasn’t been changed.

I’ve never got around to looking into it, other than a quick search.

1 Like

@ajgreeny I have the very same problem as @phil-hughes.

Upgraded to 6.8.0-52 and the file is not present, while needrestart gets the need for the reboot due to the new kernel.

The ssh login banner do not show the need for the reboot (obviously because there is no reboot-required file)

I’m thinking about throwing a bug on lauchpad.

EDIT: a different machine, with virtualmin installed, showed the need for the reboot on the gui, already rebooted so I do not know if the file was really there or not