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

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

HASSIO 安装一键脚本

   关闭 [复制链接]

6

主题

259

帖子

662

积分

高级会员

Rank: 4

积分
662
金钱
403
HASS币
0
发表于 2019-7-2 00:15:28 | 显示全部楼层
neroxps 发表于 2019-7-1 09:02
首先我不知道你是哪个阶段速度慢,最好提供下截图。
其次 docker 和 系统源都有几个源可以选,这些都是国 ...

可能是最近更新太频繁,白天下不了,隔天早上5点多起来下很快就好了!
本地网络速度都是没问题的,联通300m,能跑满的。
谢谢!
回复

使用道具 举报

1

主题

58

帖子

262

积分

中级会员

Rank: 3Rank: 3

积分
262
金钱
204
HASS币
0
发表于 2019-7-3 14:13:52 | 显示全部楼层
安装curl失败
QQ截图20190703141146.png
QQ截图20190703141222.png
回复

使用道具 举报

0

主题

18

帖子

59

积分

注册会员

Rank: 2

积分
59
金钱
41
HASS币
0
发表于 2019-7-3 14:17:04 | 显示全部楼层
这个必须收藏,等有时间跟着安装一下
回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
 楼主| 发表于 2019-7-3 14:41:20 | 显示全部楼层

mount 看看/ 分区是不是 只读了。
Nero
回复

使用道具 举报

1

主题

58

帖子

262

积分

中级会员

Rank: 3Rank: 3

积分
262
金钱
204
HASS币
0
发表于 2019-7-4 08:38:22 | 显示全部楼层
neroxps 发表于 2019-7-3 14:41
mount 看看/ 分区是不是 只读了。

重新安装Armbian-5.88后成功,谢谢
回复

使用道具 举报

0

主题

19

帖子

140

积分

注册会员

Rank: 2

积分
140
金钱
121
HASS币
0
发表于 2019-7-5 16:18:07 | 显示全部楼层
本人网络环境为辽宁大连100M网通光纤。服务器为esxi跑Ubuntu server 18.04,脚本中提供的两个docker国内源不知为何下载速度奇慢无比,而且经常重置,导致安装失败。我连续三天安装了超过20次,一次也没成功,国外docker源尝试也是失败。
找到了一个docker的163源,自行替换了脚本中七牛云的地址,运行后秒速下载完成。现提供163源给楼主,请楼主考虑是否加入脚本中。
有一样情况的小伙伴也可以自行替换。
http://hub-mirror.c.163.com


错误提示:
docker-cn:
 ###############################################################################                                                                                                                                                             #
 # 1. 是否将系统源切换为中科大(USTC)源: 是
 # 2. 是否将用户添加至 Docker 用户组:   是,添加用户为 *
 # 3. 是否将 Docker 源切换至国内源:     是,切换源选择:docker-cn
 # 4. 您的设备类型为:                   qemux86-64
 # 5. 您的 hassio 数据路径为:           /usr/share/hassio
 ###############################################################################                                                                                                                                                             #
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

[info]: 切换系统网络源.....
Hit:1 [url]https://mirrors.aliyun.com/docker-ce/linux/ubuntu[/url] bionic InRelease
Hit:2 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic InRelease
Hit:3 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic-security InRelease
Hit:4 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic-updates InRelease
Hit:5 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
9 packages can be upgraded. Run 'apt list --upgradable' to see them.
[info]: 安装 hassio 必要依赖.....
Reading package lists... Done
Building dependency tree
Reading state information... Done
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
socat is already the newest version (1.7.3.2-2ubuntu2).
jq is already the newest version (1.5+dfsg-2).
avahi-daemon is already the newest version (0.7-3.1ubuntu1.2).
curl is already the newest version (7.58.0-2ubuntu3.7).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
/usr/bin/docker
[info]: 发现系统已安装 docker,跳过 docker 安装
[info]: 切换 Docker 源为国内源....
[info]: 切换国内源完成
[info]: 安装 hassio......
从 hub.docker.com 下载 homeassistant/qemux86-64-homeassistant:0.95.4......
0.95.4: Pulling from homeassistant/qemux86-64-homeassistant
e7c96db7181b: Pull complete
debe2615936a: Pull complete
6aefe54a5c96: Pull complete
4656e5ce698a: Pull complete
aa7964a8c16f: Downloading  5.823MB/31.53MB
e130ee4f643b: Download complete
a419e5bd86ac: Download complete
c63d98b91529: Download complete
d745871d8fd0: Downloading  4.271MB/37.89MB
5122fc8112f9: Download complete
e5e7776d833d: Retrying in 1 second
e35931d08ba5: Waiting
c85c1c5208ac: Waiting
d0efd85f96bd: Waiting
25a5dba3751c: Waiting
418272793469: Waiting
4c057f778d47: Waiting
cea70c797c98: Waiting
d846d5330fe3: Waiting
Get [url]https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blob[/url]                                                                                                                                                             s/sha256/e5/e5e7776d833de003fef252b7ff04f342a255ec97a8a7322985bc8e9baeddc8a1/dat                                                                                                                                                             a?verify=1562293908-ZLl8B07JgerYxfyJpBfrOrdxmAE%3D: net/http: TLS handshake time                                                                                                                                                             out
[ERROR]: 从 docker 下载 homeassistant/qemux86-64-homeassistant:0.95.4 失败,请检                                                                                                                                                             查上方失败信息。



七牛云:
 ###############################################################################                                                                                                                                                             #
 # 1. 是否将系统源切换为中科大(USTC)源: 是
 # 2. 是否将用户添加至 Docker 用户组:   是,添加用户为 *
 # 3. 是否将 Docker 源切换至国内源:     是,切换源选择:七牛云
 # 4. 您的设备类型为:                   qemux86-64
 # 5. 您的 hassio 数据路径为:           /usr/share/hassio
 ###############################################################################                                                                                                                                                             #
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

[info]: 切换系统网络源.....
Hit:1 [url]https://mirrors.aliyun.com/docker-ce/linux/ubuntu[/url] bionic InRelease
Hit:2 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic InRelease
Hit:3 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic-security InRelease
Hit:4 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic-updates InRelease
Hit:5 [url]http://mirrors.ustc.edu.cn/ubuntu[/url] bionic-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
[info]: 安装 hassio 必要依赖.....
Reading package lists... Done
Building dependency tree
Reading state information... Done
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
socat is already the newest version (1.7.3.2-2ubuntu2).
jq is already the newest version (1.5+dfsg-2).
avahi-daemon is already the newest version (0.7-3.1ubuntu1.2).
curl is already the newest version (7.58.0-2ubuntu3.7).
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
/usr/bin/docker
[info]: 发现系统已安装 docker,跳过 docker 安装
[info]: 切换 Docker 源为国内源....
[info]: 切换国内源完成
[info]: 安装 hassio......
从 hub.docker.com 下载 homeassistant/qemux86-64-homeassistant:0.95.4......
0.95.4: Pulling from homeassistant/qemux86-64-homeassistant
e7c96db7181b: Pull complete
debe2615936a: Pull complete
6aefe54a5c96: Pull complete
4656e5ce698a: Pull complete
aa7964a8c16f: Downloading  3.775MB
e130ee4f643b: Download complete
a419e5bd86ac: Download complete
c63d98b91529: Download complete
d745871d8fd0: Downloading  37.89MB/37.89MB
5122fc8112f9: Download complete
e5e7776d833d: Download complete
e35931d08ba5: Download complete
c85c1c5208ac: Download complete
d0efd85f96bd: Download complete
25a5dba3751c: Download complete
418272793469: Download complete
4c057f778d47: Downloading
cea70c797c98: Download complete
d846d5330fe3: Download complete
net/http: TLS handshake timeout
[ERROR]: 从 docker 下载 homeassistant/qemux86-64-homeassistant:0.95.4 失败,请检                                                                                                                                                             查上方失败信息。




回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
 楼主| 发表于 2019-7-5 16:22:49 | 显示全部楼层
aya4dw 发表于 2019-7-5 16:18
本人网络环境为辽宁大连100M网通光纤。服务器为esxi跑Ubuntu server 18.04,脚本中提供的两个docker国内源 ...

估计是你时间不对导致 TLS 故障。你的163源没有https 所以不存在这个问题。
Nero
回复

使用道具 举报

0

主题

10

帖子

39

积分

新手上路

Rank: 1

积分
39
金钱
29
HASS币
0
发表于 2019-7-7 20:28:47 | 显示全部楼层
先回帖再看帖
回复

使用道具 举报

0

主题

90

帖子

761

积分

高级会员

Rank: 4

积分
761
金钱
671
HASS币
0
发表于 2019-7-9 20:14:25 | 显示全部楼层
本帖最后由 94weimei 于 2019-7-9 20:16 编辑

贝壳云p1安装失败
Error response from daemon: Get https://registry-1.docker.io/v2/ ... isor/manifests/167: Get https://auth.docker.io/token?sco ... registry.docker.io: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Unit hassio-supervisor.service could not be found.

最后这一步什么引起的
QQ截图20190709201603.jpg
回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
 楼主| 发表于 2019-7-10 09:15:03 | 显示全部楼层
94weimei 发表于 2019-7-9 20:14
贝壳云p1安装失败
Error response from daemon: Get https://registry-1.docker.io/v2/ ... isor/manifests ...

Client.Timeout exceeded while awaiting headers
连接超时

你连不上  https://registry-1.docker.io
Nero
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-29 11:32 , Processed in 0.096546 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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