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

谢谢兄弟,但还是报错(
root@raspberrypi:/home/pi# sudo apt-get install curl

Reading package lists… Done

Building dependency tree

Reading state information… Done

curl is already the newest version (7.64.0-4+deb10u1).

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

1 not fully installed or removed.

After this operation, 0 B of additional disk space will be used.

Do you want to continue? [Y/n] y

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 06:12:27 BST; 29ms ago

Docs: man:auditd(8)

Process: 15264 ExecStart=/sbin/auditd (code=exited, status=1/FAILURE)

Aug 23 06:12:27 raspberrypi systemd[1]: Starting Security Auditing Service…

Aug 23 06:12:27 raspberrypi auditd[15265]: Error - audit support not in kernel

Aug 23 06:12:27 raspberrypi auditd[15265]: Cannot open netlink audit socket

Aug 23 06:12:27 raspberrypi systemd[1]: auditd.service: Control process exited, code=exited, status=1/FAILURE

Aug 23 06:12:27 raspberrypi auditd[15265]: The audit daemon is exiting.

Aug 23 06:12:27 raspberrypi systemd[1]: auditd.service: Failed with result ‘exit-code’.

Aug 23 06:12:27 raspberrypi auditd[15264]: Cannot daemonize (Success)

Aug 23 06:12:27 raspberrypi auditd[15264]: The audit daemon is exiting.

Aug 23 06:12:27 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)

这样解决了,然后重新sudo apt-get update udo apt-get upgrade
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文件夹重新改回名

2 个赞

用你的指令解决了,非常感谢,我也是树莓派3, 唉不知道下一次这个脚本还能不能用。

有没有可能是树莓派的卡读写出问题导致的这种坑。。。X86 从来没遇到过。

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 Wed 2020-09-02 14:23:52 CST; 25ms ago

Docs: man:auditd(8)

Process: 29260 ExecStart=/sbin/auditd (code=exited, status=1/FAILURE)

Sep 02 14:23:52 Denghulk systemd[1]: Starting Security Auditing Service…

Sep 02 14:23:52 Denghulk auditd[29261]: Error - audit support not in kernel

Sep 02 14:23:52 Denghulk systemd[1]: auditd.service: Control process exited, code=exited, status=1/FAILURE

Sep 02 14:23:52 Denghulk auditd[29261]: Cannot open netlink audit socket

Sep 02 14:23:52 Denghulk systemd[1]: auditd.service: Failed with result ‘exit-code’.

Sep 02 14:23:52 Denghulk auditd[29261]: The audit daemon is exiting.

Sep 02 14:23:52 Denghulk auditd[29260]: Cannot daemonize (Success)

Sep 02 14:23:52 Denghulk auditd[29260]: The audit daemon is exiting.

Sep 02 14:23:52 Denghulk 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 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 Denghulk 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux

########################### END ###########################

\033[0;31m[ERROR]: 安装curl失败,请将检查上方安装错误信息。\033[0m

请教大神,这个怎么解决

试试这个

非常感谢!用你的指令解决了 :cowboy_hat_face:

root@raspberrypi:/home/pi# wget https://code.aliyun.com/neroxps/hassio_install/raw/master/install.sh
–2020-09-28 23:18:34-- https://code.aliyun.com/neroxps/hassio_install/raw/master/install.sh
正在解析主机 code.aliyun.com (code.aliyun.com)… 120.55.150.20
正在连接 code.aliyun.com (code.aliyun.com)|120.55.150.20|:443… 已连接。
已发出 HTTP 请求,正在等待回应… 200 OK
长度:未指定 [text/plain]
正在保存至: “install.sh.15”

install.sh.15 [ <=> ] 26.17K --.-KB/s 用时 0.01s

2020-09-28 23:18:34 (1.86 MB/s) - “install.sh.15” 已保存 [26801]

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 $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):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 结束任务重新执行脚本。

0% [执行中]
命中:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster InRelease
获取:2 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster InRelease [32.6 kB]
获取:3 https://download.docker.com/linux/raspbian buster InRelease [29.7 kB]
已下载 62.3 kB,耗时 2秒 (31.4 kB/s)
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
有 29 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
info: 安装 hassio 必要依赖…
命中:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster InRelease
获取:2 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster InRelease [32.6 kB]
获取:3 https://download.docker.com/linux/raspbian buster InRelease [29.7 kB]
已下载 62.3 kB,耗时 2秒 (28.5 kB/s)
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
有 29 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
apparmor 已经是最新版 (2.13.2-10)。
apparmor-utils 已经是最新版 (2.13.2-10)。
auditd 已经是最新版 (1:2.8.4-3)。
avahi-daemon 已经是最新版 (0.7-4+b1)。
curl 已经是最新版 (7.64.0-4+deb10u1)。
jq 已经是最新版 (1.5+dfsg-2+b1)。
net-tools 已经是最新版 (1.60+git20180626.aebd88e-1)。
network-manager 已经是最新版 (1.14.6-2+deb10u1)。
qrencode 已经是最新版 (4.0.2-1)。
socat 已经是最新版 (1.7.3.2-2)。
下列软件包是自动安装的并且现在不需要了:
libexiv2-14 libgfortran3 libgmime-2.6-0 libssl1.0.2 uuid-dev
使用’apt autoremove’来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 29 个软件包未被升级。
/usr/bin/docker
info: 发现系统已安装 docker,跳过 docker 安装
info: 切换 Docker 源为国内源…
info: 切换国内源完成
info: 安装 hassio…
下载 hassio_install.sh 官方脚本 第1次
##O#- #
hub.docker.com 下载 homeassistant/raspberrypi4-homeassistant:0.115.4…
0.115.4: Pulling from homeassistant/raspberrypi4-homeassistant
52278dd8e579: Already exists
b4d7fdc86b1d: Already exists
4c93d9798faf: Already exists
6ff41efd4f0c: Already exists
8a3070ca2f1e: Already exists
4097be5d414e: Already exists
ec4ae3a1ecae: Already exists
b09baab91ec4: Already exists
c2f304feec35: Already exists
32af614b8880: Already exists
bec1cb534995: Already exists
fa0b3565b205: Already exists
0872e84ffeca: Already exists
709d1b6e0ba3: Already exists
69767f27d76a: Already exists
28c728663407: Already exists
7e72d27a6271: Already exists
7313bb7df879: Pull complete
a51912e26d7c: Pull complete
46812c3087d5: Pull complete
9b0e96fd9d83: Pull complete
00372920c064: Pull complete
bf9418050ac8: Pull complete
6419749c1efc: Pull complete
fda2d275e1b3: Pull complete
Digest: sha256:a74ca6658f36b57feaa09f0c9cb9cfb850de94a3106b71029bd9f85767030c78
Status: Downloaded newer image for homeassistant/raspberrypi4-homeassistant:0.115.4
docker.io/homeassistant/raspberrypi4-homeassistant:0.115.4
开始 hassio 安装流程。(如出现 [Warning] 请忽略,无须理会)
[warn]
[warn] If you want more control over your own system, run
[warn] Home Assistant as a VM or run Home Assistant Core
[warn] via a Docker container.
[warn]
[warn] If you want to abort, hit ctrl+c within 10 seconds…
[warn]
[warn] ModemManager service is enabled. This might cause issue when using serial devices.
[warn] Docker is using json-file and not ‘journald’ as the logging driver, this is not supported.
info Creating NetworkManager configuration
info Restarting NetworkManager
info Install supervisor Docker container
Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 8.8.8.8:53: dial udp 8.8.8.8:53: connect: network is unreachable
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 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 ###########################
安装 hassio 失败,请将上方安装信息发送到论坛询问。脚本退出…
qiu dalao bang mang kan yi xia,shumeipai shang da buchu hanzi

Docker 是自己装的?

之前折腾Awtrix的时候好像安装过 :sob:有点不太记得了,是要卸载掉再运行脚本么

大佬我实在是没辙了,试着卸载Docker提示没有安装,安装Docker又会报错,跪求大佬指点一二。后面又试过很多次一键安装的指令,还是报一样的错误 :sob: :sob: :sob: :sob:

pi@raspberrypi:~ $ sudo apt-get remove docker
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
软件包 docker 未安装,所以不会被卸载
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 29 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
正在设置 unattended-upgrades (1.11.2) …
dpkg: 处理软件包 unattended-upgrades (–configure)时出错:
已安装 unattended-upgrades 软件包 post-installation 脚本 子进程返回错误状态 10
在处理时有错误发生:
unattended-upgrades
E: Sub-process /usr/bin/dpkg returned an error code (1)

刚刚从头重来了一遍,现在是这样的 :joy:

root@raspberrypi:/home/pi# wget https://code.aliyun.com/neroxps/hassio_install/raw/master/install.sh
–2020-09-30 11:44:50-- https://code.aliyun.com/neroxps/hassio_install/raw/master/install.sh
正在解析主机 code.aliyun.com (code.aliyun.com)… 120.55.150.20
正在连接 code.aliyun.com (code.aliyun.com)|120.55.150.20|:443…
^C
root@raspberrypi:/home/pi# wget https://code.aliyun.com/neroxps/hassio_install/raw/master/install.sh
–2020-09-30 11:46:59-- https://code.aliyun.com/neroxps/hassio_install/raw/master/install.sh
正在解析主机 code.aliyun.com (code.aliyun.com)… 120.55.150.20
正在连接 code.aliyun.com (code.aliyun.com)|120.55.150.20|:443… 已连接。
已发出 HTTP 请求,正在等待回应… 200 OK
长度:未指定 [text/plain]
正在保存至: “install.sh.4”

install.sh.4 [ <=> ] 26.17K --.-KB/s 用时 0.01s

2020-09-30 11:46:59 (1.76 MB/s) - “install.sh.4” 已保存 [26801]

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 $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):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 结束任务重新执行脚本。

命中:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster InRelease
获取:2 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster InRelease [32.6 kB]
获取:3 https://download.docker.com/linux/raspbian buster InRelease [29.7 kB]
已下载 62.3 kB,耗时 2秒 (34.6 kB/s)
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
所有软件包均为最新。
info: 安装 hassio 必要依赖…
命中:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster InRelease
获取:2 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster InRelease [32.6 kB]
获取:3 https://download.docker.com/linux/raspbian buster InRelease [29.7 kB]
已下载 62.3 kB,耗时 1秒 (52.5 kB/s)
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
所有软件包均为最新。
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
apparmor 已经是最新版 (2.13.2-10)。
apparmor-utils 已经是最新版 (2.13.2-10)。
auditd 已经是最新版 (1:2.8.4-3)。
avahi-daemon 已经是最新版 (0.7-4+b1)。
curl 已经是最新版 (7.64.0-4+deb10u1)。
jq 已经是最新版 (1.5+dfsg-2+b1)。
net-tools 已经是最新版 (1.60+git20180626.aebd88e-1)。
network-manager 已经是最新版 (1.14.6-2+deb10u1)。
qrencode 已经是最新版 (4.0.2-1)。
socat 已经是最新版 (1.7.3.2-2)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
/usr/bin/docker
info: 发现系统已安装 docker,跳过 docker 安装
info: 切换 Docker 源为国内源…
info: 切换国内源完成
info: 安装 hassio…
下载 hassio_install.sh 官方脚本 第1次
##O#- #
hub.docker.com 下载 homeassistant/raspberrypi4-homeassistant:0.115.5…
0.115.5: Pulling from homeassistant/raspberrypi4-homeassistant
Digest: sha256:c77d0afa6104e015e7786ca7192a0ba6b9c10c0d560cb4684727a7dd16b718b9
Status: Image is up to date for homeassistant/raspberrypi4-homeassistant:0.115.5
docker.io/homeassistant/raspberrypi4-homeassistant:0.115.5
开始 hassio 安装流程。(如出现 [Warning] 请忽略,无须理会)
[warn]
[warn] If you want more control over your own system, run
[warn] Home Assistant as a VM or run Home Assistant Core
[warn] via a Docker container.
[warn]
[warn] If you want to abort, hit ctrl+c within 10 seconds…
[warn]
[warn] ModemManager service is enabled. This might cause issue when using serial devices.
[warn] Docker is using json-file and not ‘journald’ as the logging driver, this is not supported.
info Creating NetworkManager configuration
info Restarting NetworkManager
info Install supervisor Docker container
Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 8.8.8.8:53: dial udp 8.8.8.8:53: connect: network is unreachable
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 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 ###########################
安装 hassio 失败,请将上方安装信息发送到论坛询问。脚本退出…

这代码提示了呀,google翻译一下,挂个梯子试试,这个代码切换国内源可能有点问题,我之前也装过,你别选择换源,直接用自带的源,挂梯子

来自守护程序的错误响应:获取https://registry-1.docker.io/v2/:dial tcp:查找 registry-1.docker.io8.8.8.8:53:dial udp 8.8.8.8:53:连接:无法访问网络
hassio-supervisor-超级服务找不到

谢谢,我试一下
刚刚换成有线网,错误变成这样了

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

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

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

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

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

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

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

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

4. 您的设备类型为: qemux86-64

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

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

info: 安装 hassio 必要依赖…
Hit:1 https://mirrors.aliyun.com/docker-ce/linux/debian buster InRelease
Hit:2 http://mirrors.huaweicloud.com/debian buster InRelease
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:4 http://mirrors.huaweicloud.com/debian buster-updates InRelease
Err:5 https://packages.matrix.org/debian buster InRelease
Cannot initiate the connection to packages.matrix.org:443 (2001::9df0:224). - connect (101: Network is unreachable) Could not connect to packages.matrix.org:443 (69.171.233.37), connection timed out
Reading package lists… Done
Building dependency tree
Reading state information… Done
101 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
W: Failed to fetch https://packages.matrix.org/debian/dists/buster/InRelease Cannot initiate the connection to packages.matrix.org:443 (2001::9df0:224). - connect (101: Network is unreachable) Could not connect to packages.matrix.org:443 (69.171.233.37), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
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 101 not upgraded.
/usr/bin/docker
info: 发现系统已安装 docker,跳过 docker 安装
info: 切换 Docker 源为国内源…
info: 切换国内源完成
info: 安装 hassio…
下载 hassio_install.sh 官方脚本 第1次
##O#- #
hub.docker.com 下载 homeassistant/qemux86-64-homeassistant:0.116.2…
0.116.2: Pulling from homeassistant/qemux86-64-homeassistant
Digest: sha256:f11980987e6da0d0d9d7d54d553e347ad47d0392126c371828ef48482a16d7dc
Status: Image is up to date for homeassistant/qemux86-64-homeassistant:0.116.2
docker.io/homeassistant/qemux86-64-homeassistant:0.116.2
开始 hassio 安装流程。(如出现 [Warning] 请忽略,无须理会)
[warn]
[warn] If you want more control over your own system, run
[warn] Home Assistant as a VM or run Home Assistant Core
[warn] via a Docker container.
[warn]
[warn] If you want to abort, hit ctrl+c within 10 seconds…
[warn]
[warn] The following is missing on the host and needs
[warn] to be installed and configured before running this script again
[error] missing: AppArmor avahi
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 debi 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux
########################### END ###########################
安装 hassio 失败,请将上方安装信息发送到论坛询问。脚本退出…

相关问题可以访问https://bbs.iobroker.cn或者加QQ群776817275咨询

楼主帮忙看下 我是在EXSI种的debian虚拟机中安装的

################################################################################

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

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

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

4. 您的设备类型为: qemuarm-64

5. 您的 hassio 数据路径为: /mnt/mmcblk1p3/

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

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### Script Version: 2020.12.25.0###########################
########################### System version ###########################
########################### System version 2 ###########################
Linux version 5.4.83-flippy-50+o (root@phicomm-n1) (gcc version 8.3.0 (Debian 8.3.0-6)) #217 SMP Sat Dec 12 12:52:44 CST 2020
########################### System info ###########################
Linux N1 5.4.83-flippy-50+o #217 SMP Sat Dec 12 12:52:44 CST 2020 aarch64 GNU/Linux
########################### END ###########################
安装curl socat jq avahi-daemon net-tools network-manager qrencode apparmor apparmor-utils失败,请将检查上方安装错误信息。

[warn] 相关问题可以访问https://bbs.iobroker.cn或者加QQ群776817275咨询

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

(2).是否更新系统软件到最新?
[warn] 如果系统依赖版本低于 supervisor 要求,会导致 supervisor 显示系统不健康,最终导致无法安装 addons.
请输入 yes 或者 no(默认:no):n

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

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

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

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

(7).是否将 github hosts 写入 coreDNS
或许有效加快 hassio 第一次启动时 clone addons 速度
hosts 文件来自 https://github.com/jianboy/github-host 项目
[warn] 如有爬墙环境请输入 N
请输入 yes 或 no (默认:no):
################################################################################

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

2. 是否更新系统软件到最新: 否

3. 是否将用户添加至 Docker 用户组: 否

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

5. 您的设备类型为: qemuarm-64

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

7. 是否将 github hosts 写入 coreDNS: 否

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

[info] 切换系统网络源…
[warn] 发现 armbian 源,替换清华源,如需要恢复请自行到 /etc/apt/sources.list.d/ 文件夹中删除后缀名 “.bak”
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease
Hit:2 http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease
Hit:3 https://mirrors.aliyun.com/docker-ce/linux/debian buster InRelease
Hit:4 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease
Hit:5 http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease
Hit:6 http://mirrors.tuna.tsinghua.edu.cn/armbian stretch InRelease
Reading package lists… Done
Building dependency tree
Reading state information… Done
2 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
[info] 安装 hassio 必要依赖…
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease
Hit:2 https://mirrors.aliyun.com/docker-ce/linux/debian buster InRelease
Hit:3 http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease
Hit:4 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease
Hit:5 http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease
Hit:6 http://mirrors.tuna.tsinghua.edu.cn/armbian stretch InRelease
Reading package lists… Done
Building dependency tree
Reading state information… Done
2 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).
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).
The following packages were automatically installed and are no longer required:
dconf-gsettings-backend dconf-service dh-python g+±6 glib-networking glib-networking-common
glib-networking-services gsettings-desktop-schemas libbind9-140 libboost-filesystem1.62.0
libboost-iostreams1.62.0 libboost-system1.62.0 libdbus-glib-1-2 libdconf1 libdns162 libf2fs0
libgudev-1.0-0 libicu57 libisc160 libisccc140 libisccfg140 liblwres141 libntfs-3g871 libperl5.24
libproxy1v5 libpython-stdlib libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib
libpython3.5-minimal libpython3.5-stdlib libqrencode3 libsoup2.4-1 libstdc+±6-dev python python-gdbm
python-minimal python2 python2-minimal python2.7 python2.7-minimal python3-distutils python3-lib2to3
python3.5 python3.5-minimal
Use ‘apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up docker-ce (5:20.10.3~3-0~debian-buster) …
Job for docker.service failed because the control process exited with error code.
See “systemctl status docker.service” and “journalctl -xe” for details.
invoke-rc.d: initscript docker, action “start” failed.

  • docker.service - Docker Application Container Engine
    Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
    Active: activating (auto-restart) (Result: exit-code) since Thu 2021-02-25 07:54:43 UTC; 28ms ago
    Docs: https://docs.docker.com
    Process: 20326 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
    Main PID: 20326 (code=exited, status=1/FAILURE)

Feb 25 07:54:43 aml systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Feb 25 07:54:43 aml systemd[1]: docker.service: Failed with result ‘exit-code’.
Feb 25 07:54:43 aml systemd[1]: Failed to start Docker Application Container Engine.
dpkg: error processing package docker-ce (–configure):
installed docker-ce package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### Script Version: 2021.02.23.0###########################
########################### System version ###########################
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
########################### System version 2 ###########################
Linux version 5.0.2-aml-s905 (root@vbox) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #5.77 SMP PREEMPT Mon Apr 1 17:41:33 MSK 2019
########################### System info ###########################
Linux aml 5.0.2-aml-s905 #5.77 SMP PREEMPT Mon Apr 1 17:41:33 MSK 2019 aarch64 GNU/Linux
########################### END ###########################
安装curl socat jq avahi-daemon net-tools network-manager qrencode apparmor apparmor-utils失败,请将检查上方安装错误信息。

折腾好久,一直都不行,不知道什么原因

journalctl -u docker -f

日志发出来看看

– Logs begin at Mon 2019-04-01 14:46:15 UTC. –
Feb 25 08:00:02 aml dockerd[21155]: time=“2021-02-25T08:00:02.650310447Z” level=warning msg=“Your kernel does not support cgroup blkio weight”
Feb 25 08:00:02 aml dockerd[21155]: time=“2021-02-25T08:00:02.650435613Z” level=warning msg=“Your kernel does not support cgroup blkio weight_device”
Feb 25 08:00:02 aml dockerd[21155]: time=“2021-02-25T08:00:02.651315156Z” level=info msg=“Loading containers: start.”
Feb 25 08:00:02 aml dockerd[21155]: time=“2021-02-25T08:00:02.729769726Z” level=warning msg=“Running iptables --wait -t nat -L -n failed with message: iptables v1.8.2 (nf_tables): CHAIN_ADD failed (No such file or directory): chain PREROUTING, error: exit status 4”
Feb 25 08:00:03 aml dockerd[21155]: time=“2021-02-25T08:00:03.267902484Z” level=info msg=“stopping event stream following graceful shutdown” error="" module=libcontainerd namespace=moby
Feb 25 08:00:03 aml dockerd[21155]: failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables --wait -t nat -N DOCKER: iptables v1.8.2 (nf_tables): CHAIN_ADD failed (No such file or directory): chain PREROUTING
Feb 25 08:00:03 aml dockerd[21155]: (exit status 4)
Feb 25 08:00:03 aml systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Feb 25 08:00:03 aml systemd[1]: docker.service: Failed with result ‘exit-code’.
Feb 25 08:00:03 aml systemd[1]: Failed to start Docker Application Container Engine.
Feb 25 08:00:05 aml systemd[1]: docker.service: Service RestartSec=2s expired, scheduling restart.
Feb 25 08:00:05 aml systemd[1]: docker.service: Scheduled restart job, restart counter is at 2.
Feb 25 08:00:05 aml systemd[1]: Stopped Docker Application Container Engine.
Feb 25 08:00:05 aml systemd[1]: Starting Docker Application Container Engine…
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.600347955Z” level=info msg=“Starting up”
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.606029088Z” level=info msg=“parsed scheme: “unix”” module=grpc
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.606180130Z” level=info msg=“scheme “unix” not registered, fallback to default scheme” module=grpc
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.606351380Z” level=info msg=“ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0 }] }” module=grpc
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.606443297Z” level=info msg=“ClientConn switching balancer to “pick_first”” module=grpc
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.618605147Z” level=info msg=“parsed scheme: “unix”” module=grpc
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.618814564Z” level=info msg=“scheme “unix” not registered, fallback to default scheme” module=grpc
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.618932772Z” level=info msg=“ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0 }] }” module=grpc
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.619056106Z” level=info msg=“ClientConn switching balancer to “pick_first”” module=grpc
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.650580692Z” level=info msg="[graphdriver] using prior storage driver: overlay2"
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.659206953Z” level=warning msg=“Your kernel does not support cgroup blkio weight”
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.659335370Z” level=warning msg=“Your kernel does not support cgroup blkio weight_device”
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.660303205Z” level=info msg=“Loading containers: start.”
Feb 25 08:00:05 aml dockerd[21203]: time=“2021-02-25T08:00:05.725811421Z” level=warning msg=“Running iptables --wait -t nat -L -n failed with message: iptables v1.8.2 (nf_tables): CHAIN_ADD failed (No such file or directory): chain PREROUTING, error: exit status 4”
Feb 25 08:00:06 aml dockerd[21203]: time=“2021-02-25T08:00:06.240073634Z” level=info msg=“stopping event stream following graceful shutdown” error="" module=libcontainerd namespace=moby
Feb 25 08:00:06 aml dockerd[21203]: failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables --wait -t nat -N DOCKER: iptables v1.8.2 (nf_tables): CHAIN_ADD failed (No such file or directory): chain PREROUTING
Feb 25 08:00:06 aml dockerd[21203]: (exit status 4)
Feb 25 08:00:06 aml systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Feb 25 08:00:06 aml systemd[1]: docker.service: Failed with result ‘exit-code’.
Feb 25 08:00:06 aml systemd[1]: Failed to start Docker Application Container Engine.
Feb 25 08:00:08 aml systemd[1]: docker.service: Service RestartSec=2s expired, scheduling restart.
Feb 25 08:00:08 aml systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Feb 25 08:00:08 aml systemd[1]: Stopped Docker Application Container Engine.
Feb 25 08:00:08 aml systemd[1]: docker.service: Start request repeated too quickly.
Feb 25 08:00:08 aml systemd[1]: docker.service: Failed with result ‘exit-code’.
Feb 25 08:00:08 aml systemd[1]: Failed to start Docker Application Container Engine.

是这些吗?

https://blog.csdn.net/dqwjack/article/details/107699985

sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy