树莓派 —— 关闭安装软件包时ubuntu对内核版本等的检查

简介: 树莓派 —— 关闭安装软件包时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"; };


目录
打赏
0
1
1
0
113
分享
相关文章
Centos 7、Debian、Ubuntu中tree指令的检查与下载
Centos 7、Debian、Ubuntu中tree指令的检查与下载
Python 记录在Ubuntu上的一次模块缺失的摸排检查工作
记录在Ubuntu上的一次模块缺失的摸排检查工作
83 0
技术笔记:Ubuntu:一个部署好的tomcat应用(war包)怎么用Nginx实现动静分离?
技术笔记:Ubuntu:一个部署好的tomcat应用(war包)怎么用Nginx实现动静分离?
ubuntu上安装某个程序的符号表和源码包
ubuntu上安装某个程序的符号表和源码包
|
6月前
|
在树莓派4B上安装ubuntu系统
在树莓派4B上安装ubuntu系统
|
6月前
|
树莓派 —— ubuntu上通过netplan配置网络
树莓派 —— ubuntu上通过netplan配置网络
|
6月前
|
使用dpkg在ubuntu上安装软件包遇到依赖包的问题
使用dpkg在ubuntu上安装软件包遇到依赖包的问题
|
7月前
|
在Ubuntu18.04上安装ros2的环境,ros2的常用命令:播放包、录制包等
在Ubuntu18.04上安装ros2的环境,ros2的常用命令:播放包、录制包等
308 1
ubuntu下docker及打deb包
ubuntu下docker及打deb包
76 2
树莓派ubuntu镜像备份详细教程
本文是关于树莓派Ubuntu镜像备份的详细教程,包括如何获取镜像、使用PiShrink工具减小镜像体积的步骤和命令,以及相关参数的说明。
184 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等