armbian更新后auditd提示错误解决方法

Aug 23 05:35:52 raspberrypi systemd[1]: Starting Security Auditing Service…
Aug 23 05:35:52 raspberrypi auditd[3146]: Error - audit support not in kernel
Aug 23 05:35:52 raspberrypi systemd[1]: auditd.service: Control process exited, code=exited, status=1/FAILURE
Aug 23 05:35:52 raspberrypi auditd[3146]: Cannot open netlink audit socket
Aug 23 05:35:52 raspberrypi systemd[1]: auditd.service: Failed with result ‘exit-code’.
Aug 23 05:35:52 raspberrypi auditd[3146]: The audit daemon is exiting.
Aug 23 05:35:52 raspberrypi auditd[3145]: Cannot daemonize (Success)
Aug 23 05:35:52 raspberrypi systemd[1]: Failed to start Security Auditing Service.
Aug 23 05:35:52 raspberrypi auditd[3145]: The audit daemon is exiting.
dpkg: error processing package auditd (–configure):
installed auditd package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
auditd
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

这样解决了

cd /var/lib/dpkg/
sudo mv info/ info_bak # 现将info文件夹更名
sudo mkdir info # 再新建一个新的info文件夹
sudo apt-get update # 更新
sudo apt-get -f install # 修复
sudo mv info/* info_bak/ # 执行完上一步操作后会在新的info文件夹下生成一些文件,现将这些文件全部移到info_bak文件夹下
sudo rm -rf info # 把自己新建的info文件夹删掉
sudo mv info_bak info # 把以前的info文件夹重新改回名

版权声明:
作者:Jays
链接:https://ijays.com/2021/08/armbian-auditd-erro-fix.html
来源:颓废的美
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>