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

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

HASSIO 安装一键脚本

   关闭 [复制链接]

0

主题

19

帖子

140

积分

注册会员

Rank: 2

积分
140
金钱
121
HASS币
0
发表于 2020-8-18 10:37:25 | 显示全部楼层
neroxps 发表于 2020-8-18 08:38
那么没问题啊,再装试试吧。

今天换公司网络也是一样的错误提示
回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
 楼主| 发表于 2020-8-18 11:03:23 | 显示全部楼层
aya4dw 发表于 2020-8-18 10:37
今天换公司网络也是一样的错误提示

也是提示

[Error] No AppArmor support on host.
Unit hassio-supervisor.service could not be found.
??
Nero
回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
 楼主| 发表于 2020-8-18 11:04:05 | 显示全部楼层
aya4dw 发表于 2020-8-18 10:37
今天换公司网络也是一样的错误提示
curl -i https://cdn.jsdelivr.net/gh/home-assistant/supervised-installer/files/hassio-supervisor.service


看看报错吗?
Nero
回复

使用道具 举报

0

主题

19

帖子

140

积分

注册会员

Rank: 2

积分
140
金钱
121
HASS币
0
发表于 2020-8-18 11:23:57 | 显示全部楼层
本帖最后由 aya4dw 于 2020-8-18 12:23 编辑


root@arm-64:~# curl -i https://cdn.jsdelivr.net/gh/home ... -supervisor.service
HTTP/2 200
date: Tue, 18 Aug 2020 03:23:08 GMT
content-type: application/octet-stream
content-length: 327
access-control-allow-origin: *
access-control-expose-headers: *
timing-allow-origin: *
cache-control: public, max-age=604800, s-maxage=43200
cross-origin-resource-policy: cross-origin
x-content-type-options: nosniff
strict-transport-security: max-age=31536000; includeSubDomains; preload
etag: W/"147-b7SIa8rCHFbXk52u4sMaL/ytKVg"
accept-ranges: bytes
x-served-by: cache-fra19161-FRA, cache-hkg17927-HKG
x-via: 1.1 PSxgHKG8ef124:4 (Cdn Cache Server V2.0), 1.1 PS-SHE-01Qzb54:3 (Cdn Cache Server V2.0), 1.1 PS-AOG-01jSG81:6 (Cdn Cache Server V2.0)
x-ws-request-id: 5f3b499b_PS-AOG-01BXb79_72063-24434

[Unit]
Description=Hass.io supervisor
Requires=%%DOCKER_SERVICE%%
After=%%DOCKER_SERVICE%% dbus.socket

[Service]
Type=simple
Restart=always
RestartSec=5s
ExecStartPre=-%%DOCKER_BINARY%% stop hassio_supervisor
ExecStart=%%HASSIO_BINARY%%
ExecStop=-%%DOCKER_BINARY%% stop hassio_supervisor

[Install]
WantedBy=multi-user.target


-------------------------------------------------------------------分割线



root@arm-64:~# wget https://cdn.jsdelivr.net/gh/home ... -supervisor.service
--2020-08-18 04:21:42--  https://cdn.jsdelivr.net/gh/home ... -supervisor.service
Resolving cdn.jsdelivr.net (cdn.jsdelivr.net)... 116.140.154.38, 2408:8738:5400:2::7
Connecting to cdn.jsdelivr.net (cdn.jsdelivr.net)|116.140.154.38|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 327 [application/octet-stream]
Saving to: ‘hassio-supervisor.service’

hassio-supervisor.s 100%[===================>]     327  --.-KB/s    in 0s

2020-08-18 04:21:42 (7.42 MB/s) - ‘hassio-supervisor.service’ saved [327/327]

root@arm-64:~# chmod +x hassio-supervisor.service
root@arm-64:~# ./hassio-supervisor.service
./hassio-supervisor.service: line 1: [Unit]: command not found
./hassio-supervisor.service: line 2: supervisor: command not found
./hassio-supervisor.service: line 4: dbus.socket: command not found
./hassio-supervisor.service: line 6: [Service]: command not found
./hassio-supervisor.service: line 10: stop: command not found
./hassio-supervisor.service: line 12: stop: command not found
./hassio-supervisor.service: line 14: [Install]: command not found

回复

使用道具 举报

1

主题

19

帖子

64

积分

注册会员

Rank: 2

积分
64
金钱
45
HASS币
0
发表于 2020-8-18 11:35:54 | 显示全部楼层
##
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

[info]: 切换系统网络源.....
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease
Get:2 http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [51.9 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [46.7 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease [65.4 kB]
Get:5 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main arm64 Packages.diff/Index [27.8 kB]
Get:6 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main arm64 Packages 2020-08-17-1400.42.pdiff [1,917 B]
Get:7 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main arm64 Packages 2020-08-17-2014.01.pdiff [980 B]
Get:8 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main arm64 Packages 2020-08-18-0201.20.pdiff [569 B]
Get:8 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main arm64 Packages 2020-08-18-0201.20.pdiff [569 B]
Fetched 195 kB in 2s (82.9 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
59 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 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
59 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 59 not upgraded.
/usr/bin/docker
[info]: 发现系统已安装 docker,跳过 docker 安装
[info]: 切换 Docker 源为国内源....
[info]: 切换国内源完成
[info]: 安装 hassio......
下载 hassio_install.sh 官方脚本 第1次
######################################################################### 100.0%
从 hub.docker.com 下载 homeassistant/raspberrypi3-64-homeassistant:0.114.2......
0.114.2: Pulling from homeassistant/raspberrypi3-64-homeassistant
b538f80385f9: Pulling fs layer
d9ed40cac2ba: Pulling fs layer
d9ed40cac2ba: Download complete
fd658ba597e1: Downloading  535.3kB
ca3240c22a8e: Downloading
c084d8dedb27: Waiting
7de939f6c19c: Waiting
d4892b80a46a: Waiting
f1ae2bc5025e: Waiting
1f6c73b3080c: Waiting
db902c678339: Waiting
376ea437637f: Waiting
a61ae35e58e6: Waiting
776f827dc62f: Waiting
abc3cc0f66b1: Waiting
cdeb9323e516: Waiting
a4e1c0c48719: Waiting
d812beb5043a: Waiting
6bdada9ab50e: Waiting
717999e55c93: Waiting
ca0dddf2a14f: Waiting
72525c1164f0: Waiting
cf89ad43491e: Waiting
02025c4616c1: Waiting
0fdff7a35741: Waiting
0.114.2: Pulling from homeassistant/raspberrypi3-64-homeassistant
b538f80385f9: Pulling fs layer
d9ed40cac2ba: Pulling fs layer
d6a9299143a9: Pull complete
fd658ba597e1: Pull complete
ca3240c22a8e: Downloading
c084d8dedb27: Download complete
7de939f6c19c: Download complete
d4892b80a46a: Download complete
f1ae2bc5025e: Download complete
1f6c73b3080c: Download complete
db902c678339: Download complete
376ea437637f: Download complete
a61ae35e58e6: Download complete
776f827dc62f: Download complete
abc3cc0f66b1: Download complete
cdeb9323e516: Download complete
a4e1c0c48719: Download complete
d812beb5043a: Download complete
6bdada9ab50e: Download complete
717999e55c93: Download complete
ca0dddf2a14f: Download complete
72525c1164f0: Download complete
cf89ad43491e: Download complete
02025c4616c1: Download complete
0fdff7a35741: Download complete
0.114.2: Pulling from homeassistant/raspberrypi3-64-homeassistant
b538f80385f9: Pulling fs layer
d9ed40cac2ba: Pulling fs layer
d6a9299143a9: Pull complete
fd658ba597e1: Pull complete
ca3240c22a8e: Pull complete
c084d8dedb27: Pull complete
7de939f6c19c: Pull complete
d4892b80a46a: Pull complete
f1ae2bc5025e: Pull complete
1f6c73b3080c: Pull complete
db902c678339: Pull complete
376ea437637f: Pull complete
a61ae35e58e6: Pull complete
776f827dc62f: Pull complete
abc3cc0f66b1: Pull complete
cdeb9323e516: Pull complete
a4e1c0c48719: Pull complete
d812beb5043a: Pull complete
6bdada9ab50e: Pull complete
717999e55c93: Pull complete
ca0dddf2a14f: Pull complete
72525c1164f0: Pull complete
cf89ad43491e: Pull complete
02025c4616c1: Pull complete
0fdff7a35741: Pull complete
Digest: sha256:d04d4ea2edca67e33d5f12bd1f100028bb40276241d8905bf6be6b4cd448a6d0
Status: Downloaded newer image for homeassistant/raspberrypi3-64-homeassistant:0.114.2
docker.io/homeassistant/raspberrypi3-64-homeassistant:0.114.2
开始 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 ###########################
########################### System version 2 ###########################
Linux version 5.4.45-OPENFANS+20200614-v8 (root@raspbian) (gcc version 10.1.0 (GCC)) #1 SMP PREEMPT Sun Jun 14 19:45:16 CST 2020
########################### System info ###########################
Linux raspbian 5.4.45-OPENFANS+20200614-v8 #1 SMP PREEMPT Sun Jun 14 19:45:16 CST 2020 aarch64 GNU/Linux
########################### END ###########################
安装 hassio 失败,请将上方安装信息发送到论坛询问。脚本退出...
回复

使用道具 举报

1

主题

19

帖子

64

积分

注册会员

Rank: 2

积分
64
金钱
45
HASS币
0
发表于 2020-8-18 13:38:44 | 显示全部楼层
这个是换了个系统测试的

%
从 hub.docker.com 下载 homeassistant/raspberrypi3-homeassistant:0.114.2......
0.114.2: Pulling from homeassistant/raspberrypi3-homeassistant
52278dd8e579: Pulling fs layer
6102c003b6e3: Pulling fs layer
4236e4e90551: Pull complete
5719cec5a6fc: Downloading
36f4cf542ed0: Download complete
ddd36a9eea3f: Downloading
3334b13728a0: Downloading
2f621c3f2074: Download complete
b56d8d7a3a75: Download complete
f46b26f86660: Download complete
a19fc7dc3a86: Download complete
45cb95c98046: Download complete
c054bf499a1c: Download complete
6e3b070253c7: Download complete
3bc401c99e00: Download complete
f5e2791863d5: Download complete
d0cbcd862a76: Download complete
57af46067e67: Download complete
6cce3a9e5922: Download complete
adcdbf3c79e1: Download complete
6d12a50adc8d: Download complete
5acb4dd0d188: Download complete
ea652a1182f5: Download complete
6e349dbe1f8b: Download complete
1f964b2a5bb9: Download complete
0.114.2: Pulling from homeassistant/raspberrypi3-homeassistant
52278dd8e579: Pulling fs layer
6102c003b6e3: Pulling fs layer
4236e4e90551: Pull complete
5719cec5a6fc: Downloading
36f4cf542ed0: Download complete
ddd36a9eea3f: Downloading
3334b13728a0: Downloading
2f621c3f2074: Download complete
b56d8d7a3a75: Download complete
f46b26f86660: Download complete
a19fc7dc3a86: Download complete
45cb95c98046: Download complete
c054bf499a1c: Download complete
6e3b070253c7: Download complete
3bc401c99e00: Download complete
f5e2791863d5: Download complete
d0cbcd862a76: Download complete
57af46067e67: Download complete
6cce3a9e5922: Download complete
adcdbf3c79e1: Download complete
6d12a50adc8d: Download complete
5acb4dd0d188: Download complete
ea652a1182f5: Download complete
6e349dbe1f8b: Download complete
1f964b2a5bb9: Download complete
0.114.2: Pulling from homeassistant/raspberrypi3-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
57af46067e67: Pull complete
6cce3a9e5922: Pull complete
adcdbf3c79e1: Pull complete
6d12a50adc8d: Pull complete
5acb4dd0d188: Pull complete
ea652a1182f5: Pull complete
6e349dbe1f8b: Pull complete
1f964b2a5bb9: Pull complete
Digest: sha256:84b18740623ccb316eae2cc9f00050817742e642abb96e3f17b98f61d428d4a0
Status: Downloaded newer image for homeassistant/raspberrypi3-homeassistant:0.114.2
docker.io/homeassistant/raspberrypi3-homeassistant:0.114.2
开始 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-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 ###########################
安装 hassio 失败,请将上方安装信息发送到论坛询问。脚本退出...

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

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
 楼主| 发表于 2020-8-18 14:58:35 | 显示全部楼层
aya4dw 发表于 2020-8-18 11:23
root@arm-64:~# curl -i https://cdn.jsdelivr.net/gh/home ... -supervisor.service
HTTP/2 200
date: T ...

那太奇怪了,脚本里面也是 wget 下载的 service 文件。我这边广东中山下载都没问题。装了好多遍了都没问题。
Nero
回复

使用道具 举报

2

主题

96

帖子

1006

积分

金牌会员

Rank: 6Rank: 6

积分
1006
金钱
905
HASS币
30
发表于 2020-8-19 14:26:58 | 显示全部楼层
[info]: 发现系统已安装 docker,跳过 docker 安装
[info]: 跳过切换 Docker 源....
[info]: 安装 hassio......
从 hub.docker.com 下载 homeassistant/qemuarm-64-homeassistant:0.114.2......
0.114.2: Pulling from homeassistant/qemuarm-64-homeassistant
Digest: sha256:0c85cd6df7980302a9e697ff2ca8d4f1eea7b3cf6adf5e891eea90313cdcdad0
Status: Image is up to date for homeassistant/qemuarm-64-homeassistant:0.114.2
docker.io/homeassistant/qemuarm-64-homeassistant:0.114.2
开始 hassio 安装流程。(如出现 [Warning] 请忽略,无须理会)
./hassio_install.sh: line 1: $'\r': command not found
./hassio_install.sh: line 2: syntax error near unexpected token `newline'
./hassio_install.sh: line 2: `<!DOCTYPE html>'

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID:        Debian
Description:        Debian GNU/Linux 10 (buster)
Release:        10
Codename:        buster
########################### System version 2 ###########################
Linux version 5.4.0-rc3-aml-g12 (root@vbox) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #5.98 SMP PREEMPT Mon Oct 14 16:55:33 MSK 2019
########################### System info ###########################
Linux armbian-gjh 5.4.0-rc3-aml-g12 #5.98 SMP PREEMPT Mon Oct 14 16:55:33 MSK 2019 aarch64 GNU/Linux
########################### END ###########################
安装 hassio 失败,请将上方安装信息发送到论坛询问。脚本退出...

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



大佬,试了好几次都是这个报错!
回复

使用道具 举报

2

主题

96

帖子

1006

积分

金牌会员

Rank: 6Rank: 6

积分
1006
金钱
905
HASS币
30
发表于 2020-8-19 15:33:55 | 显示全部楼层
samhsba 发表于 2020-8-19 14:26
: 发现系统已安装 docker,跳过 docker 安装
: 跳过切换 Docker 源....
: 安装 hassio......

看上去,阿里的code项目gg了呀大佬!
回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
 楼主| 发表于 2020-8-20 08:51:17 | 显示全部楼层
can0can 发表于 2020-8-18 13:38
这个是换了个系统测试的

%

debian 10 开始默认启用 AppArmor  的吧?我没树莓派,没法知道当前环境。

https://wiki.debian.org/AppArmor/HowToUse 参考 wiki 自行开启 AppArmor  
Nero
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-27 16:43 , Processed in 0.060097 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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