樹莓派 —— 關閉安裝軟件包時ubuntu對內核版本等的檢查

參考

https://serverfault.com/questions/1101391/disable-ubuntu-22-04s-scaning-processes-candidates-after-package-upgrades

現象

樹莓派上裝了ubuntu server版,每次裝完軟件都會看到下面的日誌:

Processing triggers for dbus (1.14.10-1ubuntu1) ...
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.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

解決

修改/etc/apt/apt.conf.d/99needrestart,把下面的內容註釋掉:

root@raspberrypi:/etc/apt/apt.conf.d# cat 99needrestart
# needrestart - Restart daemons after library updates.
#
# Call needrestart after package upgrades/installations and check
# for pending service restarts. Should only be triggered if there
# was no error during installation.
#

# DPkg::Post-Invoke {"test -x /usr/lib/needrestart/apt-pinvoke && /usr/lib/needrestart/apt-pinvoke || true"; };
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章