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

我的树莓派4安装好了 登录homeassistant 里面找不到hassio 是要做什么配置么

一键脚本装的?字数补丁

在群里问了 已经解决了 谢谢

真么解决要说一下,避免后来的小伙伴掉坑里

他改了 data 的路径又重新装了便,但是之前的容器已经建立好了,输入 docker ps -a |grep homeassistant | awk '{print $1}' | xargs docker rm -f 然后重启就好了。

1 个赞

docker.io/homeassistant/qemux86-64-homeassistant:0.111.4
开始 hassio 安装流程。(如出现 [Warning] 请忽略,无须理会)
[Error] Please install avahi first
Unit hassio-supervisor.service could not be found.

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
########################### System version 2 ###########################
Linux version 4.19.0-9-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07)
########################### System info ###########################
Linux debian 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux
########################### END ###########################
安装 hassio 失败,请将上方安装信息发送到论坛询问。脚本退出.

这可能是一个更好的解决方案:

Debian将avahi-daemon安装在其他位置。

对我来说,道路是 /usr/sbin 。可以找到 whereis avahi-daemon

因此,我使用以下命令将其添加到PATH中:

复制到剪贴板

PATH=$PATH:/usr/sbin

现在 command -v avahi-daemon 可以正确解决。

按道理 sbin 也在全局变量里面吧?

root@aml:~# wget https://code.aliyun.com/neroxps/hassio_install/raw/master/hassio_upgrade.sh
–2020-07-04 23:15:44-- https://code.aliyun.com/neroxps/hassio_install/raw/master/hassio_upgrade.sh
Resolving code.aliyun.com (code.aliyun.com)… failed: Name or service not known.
wget: unable to resolve host address ‘code.aliyun.com
root@aml:~# chmod u+x hassio_upgrade.sh
chmod: cannot access ‘hassio_upgrade.sh’: No such file or directory
root@aml:~# ./hassio_upgrade.sh
-bash: ./hassio_upgrade.sh: No such file or directory

N大,这阿里云我连不上 :cold_face:

=====================================================
还有hass里装插件也报500,server error,我这网络问题该怎么解决呢

20-07-04 23:13:41 INFO (SyncWorker_6) [supervisor.docker.interface] Pull image homeassistant/aarch64-addon-check_config tag 3.3.0.
20-07-04 23:13:41 ERROR (SyncWorker_6) [supervisor.docker.interface] Can’t install homeassistant/aarch64-addon-check_config:3.3.0 -> 500 Server Error: Internal Server Error (“Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io: no such host”).

网络问题自己解决

连阿里云都连不上我还能怎么样? :joy:

20-08-02 06:09:30 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-08-02 06:09:35 WARNING (MainThread) [supervisor.updater] Can’t process version data: ‘orangepi-prime’
20-08-02 06:09:35 WARNING (MainThread) [supervisor.plugins.dns] Error on install CoreDNS plugin. Retry in 30sec
20-08-02 06:10:05 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-08-02 06:10:06 WARNING (MainThread) [supervisor.updater] Can’t process version data: ‘orangepi-prime’
20-08-02 06:10:06 WARNING (MainThread) [supervisor.plugins.dns] Error on install CoreDNS plugin. Retry in 30sec
20-08-02 06:10:36 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-08-02 06:10:39 WARNING (MainThread) [supervisor.updater] Can’t process version data: ‘orangepi-prime’
20-08-02 06:10:39 WARNING (MainThread) [supervisor.plugins.dns] Error on install CoreDNS plugin. Retry in 30sec
[cont-finish.d] executing container finish scripts…
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] udev.sh: executing…
[06:11:20] INFO: Update udev informations
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
20-08-02 06:11:33 INFO (MainThread) [supervisor.bootstrap] Use the old homeassistant repository for machine extraction
20-08-02 06:11:33 INFO (MainThread) [main] Initialize Supervisor setup
20-08-02 06:11:35 INFO (MainThread) [supervisor.bootstrap] Setup coresys for machine: orangepi-prime
20-08-02 06:11:36 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attach to Supervisor homeassistant/armv7-hassio-supervisor with version 229
20-08-02 06:11:36 CRITICAL (MainThread) [supervisor.core] Docker version 18.09.7 is not supported by Supervisor!
20-08-02 06:11:36 ERROR (MainThread) [supervisor.docker] Docker logging driver json-file is not supported!
20-08-02 06:11:36 CRITICAL (MainThread) [supervisor.core] System running in a unhealthy state. Please update you OS or software!
20-08-02 06:11:36 INFO (MainThread) [main] Setup Supervisor
20-08-02 06:11:36 INFO (MainThread) [supervisor.utils.gdbus] Connect to dbus: org.freedesktop.systemd1 - /org/freedesktop/systemd1
20-08-02 06:11:37 INFO (MainThread) [supervisor.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1
20-08-02 06:11:37 WARNING (MainThread) [supervisor.dbus.rauc] Host has no rauc support. OTA updates have been disabled.
20-08-02 06:11:37 INFO (MainThread) [supervisor.utils.gdbus] Connect to dbus: org.freedesktop.NetworkManager - /org/freedesktop/NetworkManager/DnsManager
20-08-02 06:11:37 INFO (MainThread) [supervisor.host.info] Update local host information
20-08-02 06:11:37 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-08-02 06:11:37 INFO (MainThread) [supervisor.host.services] Update service information
20-08-02 06:11:37 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-08-02 06:11:38 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-08-02 06:11:38 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-08-02 06:11:38 ERROR (MainThread) [supervisor.utils.gdbus] DBus return error: Error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface ‘org.freedesktop.DBus.Properties’ on object at path /org/freedesktop/NetworkManager/DnsManager
20-08-02 06:11:38 WARNING (MainThread) [supervisor.host.network] Can’t update host DNS system information!
20-08-02 06:11:38 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-08-02 06:11:38 INFO (MainThread) [supervisor.host.apparmor] Load AppArmor Profiles: {‘hassio-supervisor’}
20-08-02 06:11:38 INFO (MainThread) [supervisor.host.services] Reload local service hassio-apparmor.service
20-08-02 06:11:38 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit on /org/freedesktop/systemd1
20-08-02 06:11:38 INFO (MainThread) [supervisor.plugins.dns] No CoreDNS plugin Docker image homeassistant/armv7-hassio-dns found.
20-08-02 06:11:38 INFO (MainThread) [supervisor.plugins.dns] Setup CoreDNS plugin
20-08-02 06:11:38 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-08-02 06:11:40 WARNING (MainThread) [supervisor.updater] Can’t process version data: ‘orangepi-prime’
20-08-02 06:11:40 WARNING (MainThread) [supervisor.plugins.dns] Error on install CoreDNS plugin. Retry in 30sec
20-08-02 06:21:41 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-08-02 06:21:41 WARNING (MainThread) [supervisor.updater] Can’t process version data: ‘orangepi-prime’
20-08-02 06:21:41 WARNING (MainThread) [supervisor.plugins.dns] Error on install CoreDNS plugin. Retry in 30sec
20-08-02 06:22:11 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-08-02 06:22:12 WARNING (MainThread) [supervisor.updater] Can’t process version data: ‘orangepi-prime’
20-08-02 06:22:12 WARNING (MainThread) [supervisor.plugins.dns] Error on install CoreDNS plugin. Retry in 30sec
########################### homeassistant log ###########################
Error: No such container: homeassistant
########################### END ###########################
homeassistant 启动超时,请检查上方日志…或者重启操作系统

请问一下,香橙派是已经被弃用了吗 :joy:

直接按照架构选。

./hassio_install.sh -m armhf --data-share /usr/share/hassio
是这么运行吗

pi@raspberrypi:~ $ sudo -s
root@raspberrypi:/home/pi# wget https://code.aliyun.com/neroxps/hassio_install/r aw/master/install.sh
–2020-08-17 11:47:50-- https://code.aliyun.com/neroxps/hassio_install/raw/mast er/install.sh
Resolving code.aliyun.com (code.aliyun.com)… 120.55.150.20
Connecting to code.aliyun.com (code.aliyun.com)|120.55.150.20|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [text/plain]
Saving to: ‘install.sh.4’

install.sh.4 [ <=> ] 26.09K --.-KB/s in 0.02s

2020-08-17 11:47:50 (1.44 MB/s) - ‘install.sh.4’ saved [26720]

root@raspberrypi:/home/pi# chmod a+x install.sh
root@raspberrypi:/home/pi# ./install.sh
(1). 是否将系统源切换为清华源(目前支持 Debian Ubuntu Raspbian 三款系统)
请输入 y or n(默认 yes):

(2). 找到该系统中有以下用户名
如下方列表未显示你的用户名,请切换回你用户账号后输入 sudo usermod -aG docker $US ER 添加用户到 docker 用户组。
[1]: pi
[2]: systemd-coredump
[s]: 跳过
请输入你需要使用 docker 的用户名序号,以加入 docker 用户组:1
将pi用户添加至 docker 用户组。

(3).是否需要替换 docker 默认源?
请输入 yes 或者 no(默认:yes):

(4).请选择你设备类型(默认:qemux86)
[1]: intel-nuc: 英特尔的nuc小主机
[2]: odroid-c2: 韩国odroid-c2
[3]: odroid-xu: 韩国odroid-xu
[4]: orangepi-prime: 香橙派
[5]: qemuarm: 通用arm设备(例如斐讯N1)
[6]: qemux86: 通用X86(普通的PC机电脑)
[7]: raspberrypi: 树莓派一代
[8]: raspberrypi2: 树莓派二代
[9]: raspberrypi3: 树莓派三代
[10]: raspberrypi4: 树莓派四代
[11]: tinker: 华硕tinker
输入数字 (1-11):10
你选择了 raspberrypi4

(5).是否需要设置 hassio 数据保存路径(默认:/usr/share/hassio)
请输入 yes 或 no (默认:no):
hassio 数据路径为默认路径: /usr/share/hassio
############################################################################### #

1. 是否将系统源切换为清华源: 是

2. 是否将用户添加至 Docker 用户组: 是,添加用户为 pi

3. 是否将 Docker 源切换至国内源: 是,切换源选择:

4. 您的设备类型为: raspberrypi4

5. 您的 hassio 数据路径为: /usr/share/hassio

############################################################################### #
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

Get:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster InRelease [15 .0 kB]
Hit:2 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster InRelease
Hit:3 https://mirror.azure.cn/docker-ce/linux/raspbian buster InRelease
Fetched 15.0 kB in 1s (13.5 kB/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
102 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 https://mirror.azure.cn/docker-ce/linux/raspbian buster InRelease
Hit:3 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster InRelease
Reading package lists… Done
Building dependency tree
Reading state information… Done
102 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
Reading package lists… Done
Building dependency tree
Reading state information… Done
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 102 not upgraded.
/usr/bin/docker
info: 发现系统已安装 docker,跳过 docker 安装
info: 切换 Docker 源为国内源…
info: 切换国内源完成
info: 安装 hassio…
下载 hassio_install.sh 官方脚本 第1次
######################################################################### 100.0%
hub.docker.com 下载 homeassistant/raspberrypi4-homeassistant:0.114.1…
0.114.1: Pulling from homeassistant/raspberrypi4-homeassistant
52278dd8e579: Pulling fs layer
6102c003b6e3: Pulling fs layer
52278dd8e579: Retrying in 5 seconds
5719cec5a6fc: Download complete
36f4cf542ed0: Download complete
ddd36a9eea3f: Waiting
3334b13728a0: Downloading
2f621c3f2074: Waiting
b56d8d7a3a75: Waiting
f46b26f86660: Waiting
a19fc7dc3a86: Waiting
45cb95c98046: Waiting
c054bf499a1c: Waiting
6e3b070253c7: Waiting
3bc401c99e00: Waiting
f5e2791863d5: Waiting
d0cbcd862a76: Waiting
54fb989da989: Waiting
7d6ccd71fe28: Waiting
743bd2211831: Waiting
3d7405c2ca7b: Waiting
c624f46caead: Waiting
5f0b72d9daf7: Waiting
2d40c449b581: Waiting
a0b9d72a225a: Waiting
0.114.1: Pulling from homeassistant/raspberrypi4-homeassistant
52278dd8e579: Pulling fs layer
6102c003b6e3: Pulling fs layer
6102c003b6e3: Download complete
5719cec5a6fc: Download complete
36f4cf542ed0: Download complete
ddd36a9eea3f: Waiting
3334b13728a0: Downloading
2f621c3f2074: Waiting
b56d8d7a3a75: Waiting
f46b26f86660: Waiting
a19fc7dc3a86: Waiting
45cb95c98046: Waiting
c054bf499a1c: Waiting
6e3b070253c7: Waiting
3bc401c99e00: Waiting
f5e2791863d5: Waiting
d0cbcd862a76: Waiting
54fb989da989: Waiting
7d6ccd71fe28: Waiting
743bd2211831: Waiting
3d7405c2ca7b: Waiting
c624f46caead: Waiting
5f0b72d9daf7: Waiting
2d40c449b581: Waiting
a0b9d72a225a: Waiting
0.114.1: Pulling from homeassistant/raspberrypi4-homeassistant
52278dd8e579: Pulling fs layer
6102c003b6e3: Pulling fs layer
4236e4e90551: Pull complete
5719cec5a6fc: Pull complete
36f4cf542ed0: Pull complete
ddd36a9eea3f: Pull complete
3334b13728a0: Pull complete
2f621c3f2074: Pull complete
b56d8d7a3a75: Pull complete
f46b26f86660: Pull complete
a19fc7dc3a86: Pull complete
45cb95c98046: Pull complete
c054bf499a1c: Pull complete
6e3b070253c7: Pull complete
3bc401c99e00: Pull complete
f5e2791863d5: Pull complete
d0cbcd862a76: Pull complete
54fb989da989: Pull complete
7d6ccd71fe28: Pull complete
743bd2211831: Pull complete
3d7405c2ca7b: Pull complete
c624f46caead: Pull complete
5f0b72d9daf7: Pull complete
2d40c449b581: Pull complete
a0b9d72a225a: Pull complete
Digest: sha256:7619839f72c027ea694976179c07241591dbc44a405fab258bcff7dad977c6d6
Status: Downloaded newer image for homeassistant/raspberrypi4-homeassistant:0.114.1
docker.io/homeassistant/raspberrypi4-homeassistant:0.114.1
开始 hassio 安装流程。(如出现 [Warning] 请忽略,无须理会)
[Warning]
[Warning] If you want more control over your own system, run
[Warning] Home Assistant as a VM or run Home Assistant Core
[Warning] via a Docker container.
[Warning]
[Error] No AppArmor support on host.
Unit hassio-supervisor.service could not be found.

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
########################### System version 2 ###########################
Linux version 4.19.118-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1311 SMP Mon Apr 27 14:26:42 BST 2020
########################### System info ###########################
Linux raspberrypi 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux
########################### END ###########################
安装 hassio 失败,请将上方安装信息发送到论坛询问。脚本退出…

N大能给我看看是什么问题吗

你是N1 吧?
我也遇到了
[Warning]
[Warning] If you want more control over your own system, run
[Warning] Home Assistant as a VM or run Home Assistant Core
[Warning] via a Docker container.
[Warning]
[Error] No AppArmor support on host.
Unit hassio-supervisor.service could not be found.

看来好多都说CDN 问题。还是换回 aliyun code 算了。

我是树莓派4B,尝试了几次都是这样,也不清楚是什么问题

求助一下 auditd.service启动报错,树莓派3B OS Raspbian GNU/Linux 10 (buster) 日志如下:
root@raspberrypi:~# ./install.sh
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
(1). 是否将系统源切换为清华源(目前支持 Debian Ubuntu Raspbian 三款系统)
请输入 y or n(默认 yes):

(2). 找到该系统中有以下用户名
如下方列表未显示你的用户名,请切换回你用户账号后输入 sudo usermod -aG docker $USER 添加用户到 docker 用户组。
[1]: pi
[2]: systemd-coredump
[s]: 跳过
请输入你需要使用 docker 的用户名序号,以加入 docker 用户组:1
将pi用户添加至 docker 用户组。

(3).是否需要替换 docker 默认源?
请输入 yes 或者 no(默认:yes):

(4).请选择你设备类型(默认:qemux86)
[1]: intel-nuc: 英特尔的nuc小主机
[2]: odroid-c2: 韩国odroid-c2
[3]: odroid-xu: 韩国odroid-xu
[4]: orangepi-prime: 香橙派
[5]: qemuarm: 通用arm设备(例如斐讯N1)
[6]: qemux86: 通用X86(普通的PC机电脑)
[7]: raspberrypi: 树莓派一代
[8]: raspberrypi2: 树莓派二代
[9]: raspberrypi3: 树莓派三代
[10]: raspberrypi4: 树莓派四代
[11]: tinker: 华硕tinker
输入数字 (1-11):9
你选择了 raspberrypi3

(5).是否需要设置 hassio 数据保存路径(默认:/usr/share/hassio)
请输入 yes 或 no (默认:no):
hassio 数据路径为默认路径: /usr/share/hassio
################################################################################

1. 是否将系统源切换为清华源: 是

2. 是否将用户添加至 Docker 用户组: 是,添加用户为 pi

3. 是否将 Docker 源切换至国内源: 是,切换源选择:

4. 您的设备类型为: raspberrypi3

5. 您的 hassio 数据路径为: /usr/share/hassio

################################################################################
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

Hit:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster InRelease
Hit:2 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster InRelease
Reading package lists… Done
Building dependency tree
Reading state information… Done
103 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
Reading package lists… Done
Building dependency tree
Reading state information… Done
103 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 103 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
apt-listchanges: Can’t set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = “en_US.UTF-8”,
LANG = “en_GB.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to a fallback locale (“en_GB.UTF-8”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
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 Sun 2020-08-23 05:35:52 BST; 28ms ago
Docs: man:auditd(8)
https://github.com/linux-audit/audit-documentation
Process: 3145 ExecStart=/sbin/auditd (code=exited, status=1/FAILURE)

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)

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

sudo apt-get install curl