『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: neroxps

HASSIO 安装一键脚本

   关闭 [复制链接]

1

主题

58

帖子

407

积分

中级会员

Rank: 3Rank: 3

积分
407
金钱
349
HASS币
0
发表于 2020-10-23 19:08:48 | 显示全部楼层
root@lin:~# ./install.sh
(1). 是否将系统源切换为清华源(目前支持 Debian Ubuntu Raspbian 三款系统)
请输入 y or n(默认 yes):n


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


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


(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):n
hassio 数据路径为默认路径: /usr/share/hassio
################################################################################
# 1. 是否将系统源切换为清华源: 否
# 2. 是否将用户添加至 Docker 用户组:   是,添加用户为 lin
# 3. 是否将 Docker 源切换至国内源:     否
# 4. 您的设备类型为:                   qemux86-64
# 5. 您的 hassio 数据路径为:           /usr/share/hassio
################################################################################
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

[info]: 跳过切换系统源。
[info]: 安装 hassio 必要依赖.....
Hit:1 http://jp.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://jp.archive.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
Building dependency tree      
Reading state information... Done
3 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-4ubuntu7).
net-tools is already the newest version (1.60+git20180626.aebd88e-1ubuntu1).
socat is already the newest version (1.7.3.3-2).
jq is already the newest version (1.6-1).
qrencode is already the newest version (4.0.2-2).
curl is already the newest version (7.68.0-1ubuntu2.2).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
/usr/bin/docker
[info]: 发现系统已安装 docker,跳过 docker 安装
[info]: 跳过切换 Docker 源....
[info]: 安装 hassio......
下载 hassio_install.sh 官方脚本 第1次
############################################################################### 100.0%
下载 hassio_install.sh 官方脚本 第2次
############################################################################### 100.0%
下载 hassio_install.sh 官方脚本 第3次
############################################################################### 100.0%
下载 hassio_install.sh 官方脚本 第4次
############################################################################### 100.0%
下载 hassio_install.sh 官方脚本 第5次
############################################################################### 100.0%
下载 hassio_install.sh 官方脚本 第6次
############################################################################### 100.0%
下载 hassio_install.sh 官方脚本 第7次
############################################################################### 100.0%
下载 hassio_install.sh 官方脚本 第8次
############################################################################### 100.0%
下载 hassio_install.sh 官方脚本 第9次
############################################################################### 100.0%

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID:        Ubuntu
Description:        Ubuntu 20.04 LTS
Release:        20.04
Codename:        focal
########################### System version 2 ###########################
Linux version 5.4.0-52-generic (buildd@lgw01-amd64-060) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020
########################### System info ###########################
Linux lin 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
########################### END ###########################
\033[0;31m[ERROR]: 获取 hassio 官方一键脚本失败,请检查你系统网络与 https://code.aliyun.com 的连接是否正常。\033[0m


出现以上错误,无法连接aliyun
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
 楼主| 发表于 2020-10-24 09:58:54 | 显示全部楼层
lowkeyboy 发表于 2020-10-23 19:08
root@lin:~# ./install.sh
(1). 是否将系统源切换为清华源(目前支持 Debian Ubuntu Raspbian 三款系统)
...

回显写的很清楚了吧?
Nero
回复

使用道具 举报

0

主题

10

帖子

146

积分

注册会员

Rank: 2

积分
146
金钱
136
HASS币
0
发表于 2020-10-25 17:44:38 | 显示全部楼层
   Active: failed (Result: exit-code) since Sun 2020-10-25 08:30:19 GMT; 36ms ago
     Docs: man:auditd(8)
           https://github.com/linux-audit/audit-documentation
  Process: 11114 ExecStart=/sbin/auditd (code=exited, status=1/FAILURE)

Oct 25 08:30:19 raspberrypi systemd[1]: Starting Security Auditing Service...
Oct 25 08:30:19 raspberrypi auditd[11115]: Error - audit support not in kernel
Oct 25 08:30:19 raspberrypi auditd[11115]: Cannot open netlink audit socket
Oct 25 08:30:19 raspberrypi systemd[1]: auditd.service: Control process exited, code=exited, status=1/FAILURE
Oct 25 08:30:19 raspberrypi auditd[11115]: The audit daemon is exiting.
Oct 25 08:30:19 raspberrypi systemd[1]: auditd.service: Failed with result 'exit-code'.
Oct 25 08:30:19 raspberrypi auditd[11114]: Cannot daemonize (Success)
Oct 25 08:30:19 raspberrypi auditd[11114]: The audit daemon is exiting.
Oct 25 08:30:19 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
Setting up libjq1:armhf (1.5+dfsg-2+b1) ...
Setting up network-manager (1.14.6-2+deb10u1) ...
Created symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service → /lib/systemd/system/NetworkManager-dispatcher.service.
Created symlink /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service → /lib/systemd/system/NetworkManager-wait-online.service.
Created symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service → /lib/systemd/system/NetworkManager.service.
Setting up libmbim-proxy (1.18.0-1) ...
Setting up apparmor-utils (2.13.2-10) ...
Setting up jq (1.5+dfsg-2+b1) ...
Setting up libqmi-glib5:armhf (1.22.0-1.2) ...
Setting up libqmi-proxy (1.22.0-1.2) ...
Setting up modemmanager (1.10.0-1) ...
Created symlink /etc/systemd/system/dbus-org.freedesktop.ModemManager1.service → /lib/systemd/system/ModemManager.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ModemManager.service → /lib/systemd/system/ModemManager.service.
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for systemd (241-7~deb10u4+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for dbus (1.12.20-0+deb10u1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
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-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1333 SMP Mon Aug 10 16:45:19 BST 2020
########################### System info ###########################
Linux raspberrypi 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l GNU/Linux
########################### END ###########################
\033[0;31m[ERROR]: 安装curl失败,请将检查上方安装错误信息。\033[0m
回复

使用道具 举报

3

主题

52

帖子

332

积分

中级会员

Rank: 3Rank: 3

积分
332
金钱
280
HASS币
0
发表于 2020-10-26 19:48:07 | 显示全部楼层
多谢分享
回复

使用道具 举报

1

主题

58

帖子

407

积分

中级会员

Rank: 3Rank: 3

积分
407
金钱
349
HASS币
0
发表于 2020-10-26 21:49:31 | 显示全部楼层
neroxps 发表于 2020-10-24 09:58
回显写的很清楚了吧?

我安装了几次,用清华源也是一样。估计是莫名的网络连接问题。后来我重设了系统,他就自己连接上了。我看到楼主换成了ali源了,但屏蔽阿里服务器是不太可能的问题。很玄的网络故障。
感谢楼主回复。
回复

使用道具 举报

3

主题

52

帖子

332

积分

中级会员

Rank: 3Rank: 3

积分
332
金钱
280
HASS币
0
发表于 2020-10-27 07:46:39 | 显示全部楼层
请指导,多谢!
日志如下,是不是dns解析的问题?目前用的是dnsmasq,本地解析,nameserver 233.5.5.5,阿里dns。


-----------------------------------------
install.sh                [ <=>                    ]  26.16K  --.-KB/s  用时 0.04s

2020-10-27 03:43:54 (714 KB/s) - “install.sh” 已保存 [26792]

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


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


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


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

[info]: 切换系统网络源.....
命中:1 https://mirrors.aliyun.com/docker-ce/linux/raspbian buster InRelease
获取:2 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster InRelease [15.0 kB]
获取:3 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster InRelease [32.6 kB]
获取:4 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main Sources [11.3 MB]
获取:5 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf Packages [13.0 MB]
获取:6 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster/main armhf Packages [331 kB]
已下载 24.7 MB,耗时 12秒 (2,052 kB/s)
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有 5 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
[info]: 安装 hassio 必要依赖.....
命中:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster InRelease
命中:2 https://mirrors.aliyun.com/docker-ce/linux/raspbian buster InRelease
命中:3 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster InRelease
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有 5 个软件包可以升级。请执行 ‘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
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 5 个软件包未被升级。
/usr/bin/docker
[info]: 发现系统已安装 docker,跳过 docker 安装
[info]: 切换 Docker 源为国内源....
[info]: 切换国内源完成
[info]: 安装 hassio......
下载 hassio_install.sh 官方脚本 第1次
##O#- #
从 hub.docker.com 下载 homeassistant/raspberrypi4-homeassistant:0.116.4......
0.116.4: Pulling from homeassistant/raspberrypi4-homeassistant
52278dd8e579: Pulling fs layer
b4d7fdc86b1d: Pulling fs layer
4c93d9798faf: Downloading
6ff41efd4f0c: Waiting
8a3070ca2f1e: Waiting
4097be5d414e: Waiting
ec4ae3a1ecae: Waiting
b09baab91ec4: Waiting
c2f304feec35: Waiting
32af614b8880: Waiting
bec1cb534995: Waiting
fa0b3565b205: Waiting
0872e84ffeca: Waiting
709d1b6e0ba3: Waiting
69767f27d76a: Waiting
28c728663407: Waiting
7e72d27a6271: Waiting
5e06ed680131: Waiting
aa9e0fd4c1da: Waiting
08af834375ea: Waiting
9570fde4f0c2: Waiting
51ed5727788c: Waiting
68b326c2eb71: Waiting
49a803eb6c21: Waiting
1c84b45c7660: Waiting
0.116.4: Pulling from homeassistant/raspberrypi4-homeassistant
52278dd8e579: Pulling fs layer
b4d7fdc86b1d: Pulling fs layer
b4d7fdc86b1d: Pull complete
6ff41efd4f0c: Download complete
8a3070ca2f1e: Downloading
4097be5d414e: Download complete
ec4ae3a1ecae: Download complete
b09baab91ec4: Download complete
c2f304feec35: Download complete
32af614b8880: Download complete
bec1cb534995: Download complete
fa0b3565b205: Download complete
0872e84ffeca: Download complete
709d1b6e0ba3: Download complete
69767f27d76a: Download complete
28c728663407: Download complete
7e72d27a6271: Download complete
5e06ed680131: Download complete
aa9e0fd4c1da: Download complete
08af834375ea: Download complete
9570fde4f0c2: Download complete
51ed5727788c: Download complete
68b326c2eb71: Download complete
49a803eb6c21: Download complete
1c84b45c7660: Download complete
0.116.4: Pulling from homeassistant/raspberrypi4-homeassistant
52278dd8e579: Pulling fs layer
b4d7fdc86b1d: Pulling fs layer
4c93d9798faf: Pull complete
6ff41efd4f0c: Pull complete
8a3070ca2f1e: Pull complete
4097be5d414e: Pull complete
ec4ae3a1ecae: Pull complete
b09baab91ec4: Pull complete
c2f304feec35: Pull complete
32af614b8880: Pull complete
bec1cb534995: Pull complete
fa0b3565b205: Pull complete
0872e84ffeca: Pull complete
709d1b6e0ba3: Pull complete
69767f27d76a: Pull complete
28c728663407: Pull complete
7e72d27a6271: Pull complete
5e06ed680131: Pull complete
aa9e0fd4c1da: Pull complete
08af834375ea: Pull complete
9570fde4f0c2: Pull complete
51ed5727788c: Pull complete
68b326c2eb71: Pull complete
49a803eb6c21: Pull complete
1c84b45c7660: Pull complete
Digest: sha256:b6d98b03abf9cbb0bc359dea0d50c55894ad27d8574e88937322e74bec905aa4
Status: Downloaded newer image for homeassistant/raspberrypi4-homeassistant:0.116.4
docker.io/homeassistant/raspberrypi4-homeassistant:0.116.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
[warn] Changes are needed to the /etc/network/interfaces file
[info] If you have modified the network on the host manualy, those can now be overwritten
[info] If you do not overwrite this now you need to manually adjust it later
[info] Do you want to proceed with that? [N/y]
y
[info] Replacing /etc/network/interfaces
[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 127.0.0.1:53: server misbehaving
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.72-v7l+ (dom@buildbot) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #1356 SMP Thu Oct 22 13:57:51 BST 2020
########################### System info ###########################
Linux raspberrypi 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l GNU/Linux
########################### END ###########################
安装 hassio 失败,请将上方安装信息发送到论坛询问。脚本退出...
回复

使用道具 举报

0

主题

7

帖子

126

积分

注册会员

Rank: 2

积分
126
金钱
119
HASS币
0
发表于 2020-10-31 12:12:41 | 显示全部楼层
20-10-31 03:44:39 INFO (MainThread) [__main__] Initializing Supervisor setup
20-10-31 03:44:39 INFO (MainThread) [supervisor.bootstrap] Initializing Supervisor Sentry
20-10-31 03:44:39 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attaching to Supervisor homeassistant/armv7-hassio-supervisor with version 2020.10.0
20-10-31 03:44:39 ERROR (MainThread) [supervisor.docker] Docker logging driver json-file is not supported!
20-10-31 03:44:39 INFO (MainThread) [__main__] Setting up Supervisor
20-10-31 03:44:39 INFO (MainThread) [supervisor.api] Starting API on 172.30.32.2
20-10-31 03:44:44 WARNING (MainThread) [supervisor.dbus.rauc] Host has no rauc support. OTA updates have been disabled.
20-10-31 03:44:44 INFO (MainThread) [supervisor.host.info] Updating local host information
20-10-31 03:44:45 INFO (MainThread) [supervisor.host.services] Updating service information
20-10-31 03:44:45 INFO (MainThread) [supervisor.host.network] Updating local network information
20-10-31 03:44:45 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
20-10-31 03:44:45 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'}
20-10-31 03:44:45 INFO (MainThread) [supervisor.host.services] Reloading local service hassio-apparmor.service
20-10-31 03:44:45 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/armv7-hassio-dns with version 2020.10.0
20-10-31 03:44:45 WARNING (MainThread) [supervisor.plugins.dns] Ignoring invalid DNS Server: dns://fd61:7b4a:3e09::1
20-10-31 03:44:45 INFO (MainThread) [supervisor.plugins.dns] Starting CoreDNS plugin
20-10-31 03:44:45 INFO (SyncWorker_0) [supervisor.docker.interface] Cleaning hassio_dns application
20-10-31 03:44:47 INFO (SyncWorker_0) [supervisor.docker.dns] Starting DNS homeassistant/armv7-hassio-dns with version 2020.10.0 - 172.30.32.3
20-10-31 03:44:47 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf
20-10-31 03:44:47 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/armv7-hassio-audio with version 17
20-10-31 03:44:47 INFO (MainThread) [supervisor.plugins.audio] Starting Audio plugin
20-10-31 03:44:47 INFO (SyncWorker_0) [supervisor.docker.interface] Cleaning hassio_audio application
20-10-31 03:44:49 INFO (SyncWorker_0) [supervisor.docker.audio] Starting Audio homeassistant/armv7-hassio-audio with version 17 - 172.30.32.4
20-10-31 03:44:49 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/armv7-hassio-cli with version 2020.10.0
20-10-31 03:44:49 INFO (MainThread) [supervisor.plugins.cli] Starting CLI plugin
20-10-31 03:44:49 INFO (SyncWorker_0) [supervisor.docker.interface] Cleaning hassio_cli application
20-10-31 03:44:52 INFO (SyncWorker_0) [supervisor.docker.cli] Starting CLI homeassistant/armv7-hassio-cli with version 2020.10.0 - 172.30.32.5
20-10-31 03:44:52 INFO (MainThread) [supervisor.plugins.observer] No observer plugin Docker image homeassistant/armv7-hassio-observer found.
20-10-31 03:44:52 INFO (MainThread) [supervisor.plugins.observer] Running setup for observer plugin
20-10-31 03:44:52 INFO (SyncWorker_0) [supervisor.docker.interface] Downloading docker image homeassistant/armv7-hassio-observer with tag 2020.10.1.
########################### homeassistant log ###########################
Error: No such container: homeassistant
########################### END ###########################
homeassistant 启动超时,请检查上方日志....或者重启操作系统
相关问题可以访问https://bbs.iobroker.cn或者加QQ群776817275咨询



请问这是什么情况
回复

使用道具 举报

1

主题

8

帖子

149

积分

注册会员

Rank: 2

积分
149
金钱
141
HASS币
0
发表于 2020-11-3 09:30:24 | 显示全部楼层
[info]: 跳过切换系统源。
[info]: 安装 hassio 必要依赖.....
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 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease
Hit:4 http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
85 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 85 not upgraded.
/usr/bin/docker
[info]: 发现系统已安装 docker,跳过 docker 安装
[info]: 跳过切换 Docker 源....
[info]: 安装 hassio......
下载 hassio_install.sh 官方脚本 第1次
##O=-#     #
从 hub.docker.com 下载 homeassistant/raspberrypi4-64-homeassistant:0.117.2......
0.117.2: Pulling from homeassistant/raspberrypi4-64-homeassistant
Digest: sha256:eed7ec59239aacb208a1555d23fa45780db65fc2db0bc5b392c0ce3391ed4f66
Status: Image is up to date for homeassistant/raspberrypi4-64-homeassistant:0.117.2
docker.io/homeassistant/raspberrypi4-64-homeassistant:0.117.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-daemon
Unit hassio-supervisor.service could not be found.

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
########################### System version 2 ###########################
Linux version 5.4.47-OPENFANS+20200622-v8 (root@cavium) (gcc version 10.1.0 (GCC)) #1 SMP PREEMPT Mon Jun 22 21:17:56 CST 2020
########################### System info ###########################
Linux raspbian 5.4.47-OPENFANS+20200622-v8 #1 SMP PREEMPT Mon Jun 22 21:17:56 CST 2020 aarch64 GNU/Linux
########################### END ###########################
安装 hassio 失败,请将上方安装信息发送到论坛询问。脚本退出...

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



安装了好久报错,请大佬协助
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
 楼主| 发表于 2020-11-3 10:18:50 | 显示全部楼层
本帖最后由 neroxps 于 2020-11-3 10:23 编辑
Kieran 发表于 2020-11-3 09:30
: 跳过切换系统源。
: 安装 hassio 必要依赖.....
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/debian bust ...

输入 command -v apparmor_parser 看看找不找得到这个命令
用 aa-status 这个命令看看树莓派的系统内核是否加载了 apparmor 摸块
Nero
回复

使用道具 举报

1

主题

8

帖子

149

积分

注册会员

Rank: 2

积分
149
金钱
141
HASS币
0
发表于 2020-11-3 11:22:26 | 显示全部楼层
本帖最后由 Kieran 于 2020-11-3 11:30 编辑
neroxps 发表于 2020-11-3 10:18
输入 command -v apparmor_parser 看看找不找得到这个命令
用 aa-status 这个命令看看树莓派的系统内核是 ...

root@raspbian:/home/pi# command -v apparmor_parser
root@raspbian:/home/pi# aa-status
bash: aa-status: command not found
感谢大佬回复,继续求协助
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2025-2-24 11:35 , Processed in 0.172817 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表