This is similar to https://ubuntuforums.org/showthread.php?t=2475383 except that no Ubuntu LTS version update has ever been done.
I have several VPSes running Ubuntu 22.04. On one, which was created just over a year ago, the /var/run/reboot-required file is never created when a reboot is in fact needed.
The apt-get system recognises that a reboot is required after a kernel update and prompts me to do so, but looking at the results of auditd monitoring what happens to the reboot-required file, it is simply never created.
All the other VPSes are fine in this regard. All have update-notifier-common installed. All have the /run -> /var/run symlink.
This VPS has some (but not all) Ubuntu Advantage services enabled..
Code:
# pro status
SERVICE ENTITLED STATUS DESCRIPTION
anbox-cloud yes disabled Scalable Android in the cloud
esm-apps yes enabled Expanded Security Maintenance for Applications
esm-infra yes enabled Expanded Security Maintenance for Infrastructure
livepatch yes enabled Canonical Livepatch service
realtime-kernel yes disabled Ubuntu kernel with PREEMPT_RT patches integrated
.. the others do not.
Is this the cause?
If not, what else could be?