有没大佬知道,树莓4安装hass,报这个错,咋回事,试了N多种法了,没成功过

Hit:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster InRelease
Hit:2 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster InRelease
Hit:3 https://download.docker.com/linux/raspbian buster InRelease
Reading package lists… Done
Building dependency tree
Reading state information… Done
37 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
info: 安装 hassio 必要依赖…
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster InRelease
Hit:2 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster InRelease
Hit:3 https://download.docker.com/linux/raspbian buster InRelease
Reading package lists… Done
Building dependency tree
Reading state information… Done
37 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
Reading package lists… Done
Building dependency tree
Reading state information… Done
apparmor is already the newest version (2.13.2-10).
apparmor-utils is already the newest version (2.13.2-10).
auditd is already the newest version (1:2.8.4-3).
avahi-daemon is already the newest version (0.7-4+b1).
curl is already the newest version (7.64.0-4+deb10u1).
jq is already the newest version (1.5+dfsg-2+b1).
net-tools is already the newest version (1.60+git20180626.aebd88e-1).
network-manager is already the newest version (1.14.6-2+deb10u1).
qrencode is already the newest version (4.0.2-1).
socat is already the newest version (1.7.3.2-2).
0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up auditd (1:2.8.4-3) …
Job for auditd.service failed because the control process exited with error code.
See “systemctl status auditd.service” and “journalctl -xe” for details.
invoke-rc.d: initscript auditd, action “start” failed.
● auditd.service - Security Auditing Service
Loaded: loaded (/lib/systemd/system/auditd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-09-05 21:43:03 CST; 24ms ago
Docs: man:auditd(8)
https://github.com/linux-audit/audit-documentation
Process: 4555 ExecStart=/sbin/auditd (code=exited, status=1/FAILURE)

Sep 05 21:43:03 raspberrypi systemd[1]: Starting Security Auditing Service…
Sep 05 21:43:03 raspberrypi auditd[4556]: Error - audit support not in kernel
Sep 05 21:43:03 raspberrypi auditd[4556]: Cannot open netlink audit socket
Sep 05 21:43:03 raspberrypi auditd[4556]: The audit daemon is exiting.
Sep 05 21:43:03 raspberrypi auditd[4555]: Cannot daemonize (Success)
Sep 05 21:43:03 raspberrypi auditd[4555]: The audit daemon is exiting.
Sep 05 21:43:03 raspberrypi systemd[1]: auditd.service: Control process exited, code=exited, status=1/FAILURE
Sep 05 21:43:03 raspberrypi systemd[1]: auditd.service: Failed with result ‘exit-code’.
Sep 05 21:43:03 raspberrypi systemd[1]: Failed to start Security Auditing Service.
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)

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
########################### System version 2 ###########################
Linux version 5.4.51-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1333 SMP Mon Aug 10 16:51:40 BST 2020
########################### System info ###########################
Linux raspberrypi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux
########################### END ###########################
\033[0;31m[ERROR]: 安装curl失败,请将检查上方安装错误信息。\033[0m

试试一键脚本吗?HASSIO 一键安装脚本(更新解决 github 连接问题)

dpkg: 处理软件包 xxx (–configure)时出错 解决办法

第一步:备份

$ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bk
第二步:新建

$ sudo mkdir /var/lib/dpkg/info
第三步:更新

$ sudo apt-get update
$ sudo apt-get -f install
第四步:替换

$ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bk
把更新的文件替换到备份文件夹

第五步:删除

$ sudo rm -rf /var/lib/dpkg/info
把自己新建的info文件夹删掉

第六步:还原

$ sudo mv /var/lib/dpkg/info.bk /var/lib/dpkg/info
把备份的info.bk还原

摘自“https://bbs.hassbian.com/forum.php?mod=redirect&goto=findpost&ptid=4520&pid=342362”

1 个赞

我也遇到了这个问题,按照N大的步骤搞定了,留个记号