This message indicates the presence of the file
/var/run/reboot-required. Ubuntu packages can trigger the creation of this file in their post-installation script
A restart is usually required when an update to the Linux kernel has been installed. These are often security patches that only come into effect after reboot.
/var/run/reboot-required.pkgs lists the packages that requested the reboot. To view this file:
You should see a list of packages awaiting reboot:
Above we can see there is a Linux kernel security update
linux-base, which requires a system restart.
To reboot, run:
You typically don’t need to restart right away, but you’ll be vulnerable to any security problems fixed in the new kernel until you do.
Another way to to find out what packages have been recently installed is to run:
zgrep -h 'status installed' /var/log/dpkg.log* | sort | tail -n 100
This will show you the last 100 packages installed. Important updates to the Linux kernel typically begin with
2017-08-23 06:55:31 status installed linux-headers-generic:amd64 22.214.171.124.97 2017-08-23 06:55:31 status installed linux-headers-virtual:amd64 126.96.36.199.97 2017-08-23 06:55:31 status installed linux-image-4.4.0-92-generic:amd64 4.4.0-92.115 2017-08-23 06:55:31 status installed linux-image-virtual:amd64 188.8.131.52.97 2017-08-23 06:55:31 status installed linux-virtual:amd64 184.108.40.206.97
If you just want to get rid of the
***System Restart Required*** message without restarting, you can remove the reboot flag file.
sudo rm /var/run/reboot-required