17

I am using Ubuntu 21.04 Server on Raspberry Pi 4 (4GB RAM)

When I use apt to install a package, I get some messages at the end that I don't remember getting on my PC:

Processing triggers for man-db (2.9.4-2) ...
Scanning processes...
Scanning processor microcode...
Scanning linux images...
Running kernel seems to be up-to-date.

Failed to check for processor microcode upgrades.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

I am concerned about the message "Failed to check for processor microcode upgrades."

Why could it be failing? How can I fix this?

Zanna
  • 70,465
C--
  • 301
  • This can also occur in the WSL (Windows Subsystem for Linux) where you've run a "do-release-upgrade" and the module has been installed where it is not needed. – Jad Sep 01 '21 at 12:28

1 Answers1

27

All these messages came from needrestart application which purpose is

check which daemons need to be restarted after library upgrades

This application have several modules. The processor microcode module supports only AMD and Intel processors. So it knows nothing about ARM in the RaspberryPi, so it shows the mentioned error message.

If you do not want to get such messages, then remove this application by

sudo apt-get purge needrestart

or edit relevant configuration file at /etc/needrestart/needrestart.conf and disable microcode checks completely by changing

#$nrconf{ucodehints} = 0;

to

$nrconf{ucodehints} = 0;
N0rbert
  • 99,918
  • 1
    Thanks for pointing that out. Although I'm still worried about these packages that have dependency on needrestart(might break if I remove needrestart) ubuntu@ubuntu:~$ apt-cache rdepends needrestart needrestart Reverse Depends: needrestart-session ubuntu-server freedombox fbx-all aptitude-robot apt-dater-host unattended-upgrades ubuntu-server-raspi – C-- Jun 20 '21 at 07:36
  • See updated answer. You can use /etc/needrestart/needrestart.conf configuration file to disable ucode check. – N0rbert Jun 20 '21 at 07:44
  • Perfect! so if i disable processor microcode check nothing relevant will appen to my system? – Marco Oct 08 '22 at 05:08
  • Seems like removing the symptoms instead of fixing the issue – milaniez Jan 25 '24 at 23:52