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

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

HASSIO 安装一键脚本

   关闭 [复制链接]

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
 楼主| 发表于 2020-8-17 08:41:38 | 显示全部楼层
aya4dw 发表于 2020-8-16 19:34
N1盒子,armbian,hassio_install安装出错0.114.1: Pulling from homeassistant/qemuarm-64-homeassistantb ...

吧目录的 hassio_install.sh 文件发出来我看看。
Nero
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
 楼主| 发表于 2020-8-17 08:48:49 | 显示全部楼层
aya4dw 发表于 2020-8-16 19:34
N1盒子,armbian,hassio_install安装出错0.114.1: Pulling from homeassistant/qemuarm-64-homeassistantb ...

最新的脚本我已经套上 https://cdn.jsdelivr.net/gh/ CDN 国内访问很好啊。

https://cdn.jsdelivr.net/gh/home ... -supervisor.service
你看看能不能下载。
Nero
回复

使用道具 举报

0

主题

19

帖子

140

积分

注册会员

Rank: 2

积分
140
金钱
121
HASS币
0
发表于 2020-8-17 21:23:19 | 显示全部楼层
neroxps 发表于 2020-8-17 08:41
吧目录的 hassio_install.sh 文件发出来我看看。

麻烦您了

hassio_install.sh.zip

2.18 KB, 下载次数: 1

回复

使用道具 举报

0

主题

19

帖子

140

积分

注册会员

Rank: 2

积分
140
金钱
121
HASS币
0
发表于 2020-8-17 21:43:41 | 显示全部楼层
neroxps 发表于 2020-8-17 08:48
最新的脚本我已经套上 https://cdn.jsdelivr.net/gh/ CDN 国内访问很好啊。

https://cdn.jsdelivr.net/g ...

确定了我的网络可以下载
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
 楼主| 发表于 2020-8-18 08:38:13 | 显示全部楼层
aya4dw 发表于 2020-8-17 21:43
确定了我的网络可以下载

那么没问题啊,再装试试吧。
Nero
回复

使用道具 举报

0

主题

19

帖子

140

积分

注册会员

Rank: 2

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

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

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
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

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
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 失败,请将上方安装信息发送到论坛询问。脚本退出...
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 11:14 , Processed in 0.160588 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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