I'm confused about when I need to do system restarts even though I have Canonical Livepatch on Ubunut 20.04LTS Server

$ sudo canonical-livepatch status --verbose
last check: 22 minutes ago
kernel: 5.4.0-29.33-generic
server check-in: succeeded
patch state: ✓ no livepatches needed for this kernel yet
client version: 9.5.5
architecture: x86_64
cpu model: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz
boot time: 3 weeks ago

Logging in gave me

Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-29-generic x86_64)
62 updates can be installed immediately.
38 of these updates are security updates

So I did the usual

sudo apt update
sudo apt upgrade -y

but now I get *** System restart required ***


$ cat /var/run/reboot-required.pkgs

So do I need to restart and if so why? Isn't Livepatch meant to take care of critical Kernel patches. Or am I misunderstanding what linux-image and linux-base are?

My understanding is that Livepatch exists so we don't need to restart. How do I avoid this situation while still doing the security updates.

  • The reboot required message is triggered by the presence of the file /var/run/reboot-required. That file is usually created by upgrading various packages. You can see which one(s) triggered the reboot request by looking inside /var/run/reboot-required.pkgs. That might give you an indication why it's asking for a reboot even with livepatch installed and configured. – Jamie Scott Sep 27 at 19:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.