Skip to content

*Service restarts being deferred* on Ubuntu 22.04 Oracle VPS

sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:2 http://eu-paris-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble InRelease  
Get:3 http://eu-paris-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:4 http://eu-paris-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Get:5 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7529 B]
Get:6 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7468 B]
Get:7 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7462 B]
Get:8 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7461 B]
Get:9 http://eu-paris-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [502 kB]
Get:10 http://eu-paris-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [366 kB]
Get:11 http://eu-paris-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [10.6 kB]
Get:12 http://eu-paris-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-backports/universe Translation-en [10.8 kB]
Fetched 1171 kB in 4s (323 kB/s)           
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following upgrades have been deferred due to phasing:
  python3-distupgrade ubuntu-release-upgrader-core
The following packages will be upgraded:
  fwupd libfwupd2
2 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 4689 kB of archives.
After this operation, 77.8 kB of additional disk space will be used.
Get:1 http://eu-paris-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 libfwupd2 amd64 1.9.24-1~24.04.1 [136 kB]
Get:2 http://eu-paris-1-ad-1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 fwupd amd64 1.9.24-1~24.04.1 [4553 kB]
Fetched 4689 kB in 1s (4509 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 194465 files and directories currently installed.)
Preparing to unpack .../libfwupd2_1.9.24-1~24.04.1_amd64.deb ...
Unpacking libfwupd2:amd64 (1.9.24-1~24.04.1) over (1.9.16-1) ...
Preparing to unpack .../fwupd_1.9.24-1~24.04.1_amd64.deb ...
Unpacking fwupd (1.9.24-1~24.04.1) over (1.9.16-1) ...
Setting up libfwupd2:amd64 (1.9.24-1~24.04.1) ...
Setting up fwupd (1.9.24-1~24.04.1) ...
fwupd-offline-update.service is a disabled or a static unit not running, not sta
rting it.
fwupd-refresh.service is a disabled or a static unit not running, not starting i
t.
fwupd.service is a disabled or a static unit not running, not starting it.
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Scanning processes...                                                           
Scanning candidates...                                                          
Scanning linux images...                                                        

Pending kernel upgrade!
Running kernel version:
  6.8.0-1011-oracle
Diagnostics:
  The currently running kernel version is not the expected kernel version
6.8.0-1012-oracle.

Restarting the system to load the new kernel will not be handled automatically,
so you should consider rebooting.

Restarting services...

Service restarts being deferred:
 systemctl restart NetworkManager.service
 /etc/needrestart/restart.d/dbus.service
 systemctl restart lightdm.service
 systemctl restart systemd-logind.service
 systemctl restart unattended-upgrades.service
 systemctl restart wpa_supplicant.service

No containers need to be restarted.

User sessions running outdated binaries:
 lightdm @ user manager service: at-spi-bus-laun[1412], systemd[1312]

No VM guests are running outdated hypervisor (qemu) binaries on this host.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
ls /var/run/reboot-required
ls: cannot access '/var/run/reboot-required': No such file or directory

Searching DuckDuckGo and Google "Service restarts being deferred":

needrestart
Scanning processes...
needrestart -v
[main] eval /etc/needrestart/needrestart.conf
[main] needrestart v3.6
[main] running in user mode
[Core] Using UI 'NeedRestart::UI::stdio'...
[main] systemd detected
[main] vm detected
[main] inside container or vm, skipping microcode checks

On Debian 12:

needrestart
-bash: needrestart: command not found

Does not seem related to #13.