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

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

HASSIO 安装一键脚本

   关闭 [复制链接]

9

主题

112

帖子

359

积分

中级会员

Rank: 3Rank: 3

积分
359
金钱
247
HASS币
0
发表于 2019-7-22 17:45:10 | 显示全部楼层
本帖最后由 youquan 于 2019-7-22 17:48 编辑
neroxps 发表于 2019-7-22 17:36
[md]
请把你的配置文件夹备份后清空,重启系统,如果问题没有解决,再运行以下命令发上来求助

请问清空哪里的配置文件?谢谢
回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
 楼主| 发表于 2019-7-22 18:01:21 | 显示全部楼层
youquan 发表于 2019-7-22 17:45
请问清空哪里的配置文件?谢谢

如果你没改过 默认应该在 /usr/share/hassio 文件夹下面
Nero
回复

使用道具 举报

9

主题

112

帖子

359

积分

中级会员

Rank: 3Rank: 3

积分
359
金钱
247
HASS币
0
发表于 2019-7-22 19:00:41 | 显示全部楼层
neroxps 发表于 2019-7-22 18:01
如果你没改过 默认应该在 /usr/share/hassio 文件夹下面

请问 我从哪里找到这个文件夹,这里边没有
,别的地方不知道从哪里找,我小白,刚学,麻烦给说下,
85824.png
回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
 楼主| 发表于 2019-7-22 22:45:19 | 显示全部楼层
youquan 发表于 2019-7-22 19:00
请问 我从哪里找到这个文件夹,这里边没有
,别的地方不知道从哪里找,我小白,刚学,麻烦给说下,
...

http://cn.linux.vbird.org/
https://www.linuxprobe.com/docs/LinuxProbe.pdf

答案在里面看完你就知道了。^_^
Nero
回复

使用道具 举报

15

主题

78

帖子

289

积分

中级会员

Rank: 3Rank: 3

积分
289
金钱
211
HASS币
0
发表于 2019-7-23 20:36:51 | 显示全部楼层
脚本呢????哪里下载
回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
 楼主| 发表于 2019-7-23 22:33:51 | 显示全部楼层
jackshoe 发表于 2019-7-23 20:36
脚本呢????哪里下载

请看使用方法谢谢!
Nero
回复

使用道具 举报

15

主题

78

帖子

289

积分

中级会员

Rank: 3Rank: 3

积分
289
金钱
211
HASS币
0
发表于 2019-7-23 23:01:16 | 显示全部楼层
##########################################################################                                                                                                                                                             #
# 1. 是否将系统源切换为中科大(USTC)源: 是
# 2. 是否将用户添加至 Docker 用户组:   是,添加用户为 pi
# 3. 是否将 Docker 源切换至国内源:     是,切换源选择:七牛云
# 4. 您的设备类型为:                   raspberrypi3
# 5. 您的 hassio 数据路径为:           /usr/share/hassio
###############################################################################                                                                                                                                                             #
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

[info]: 切换系统网络源.....
备份系统源文件为 /etc/apt/sources.list.bak
Get:1 http://archive.raspberrypi.org/debian buster InRelease [25.1 kB]
Get:2 http://archive.raspberrypi.org/debian buster/main armhf Packages [212 kB]
Get:3 http://mirrors.ustc.edu.cn/raspbian/raspbian buster InRelease [15.0 kB]
Get:4 http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian buster InRelease                                                                                                                                                              [25.1 kB]
Get:5 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/main armhf Packages [1                                                                                                                                                             3.0 MB]
Get:6 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/contrib armhf Packages                                                                                                                                                              [58.7 kB]
Get:7 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/non-free armhf Package                                                                                                                                                             s [103 kB]
Get:8 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/rpi armhf Packages [1,                                                                                                                                                             360 B]
Get:9 http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian buster/main armh                                                                                                                                                             f Packages [212 kB]
Fetched 13.6 MB in 24s (561 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
35 packages can be upgraded. Run 'apt list --upgradable' to see them.
[info]: 安装 hassio 必要依赖.....
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).
net-tools is already the newest version (1.60+git20180626.aebd88e-1).
The following additional packages will be installed:
  libjq1 libonig5
The following NEW packages will be installed:
  jq libjq1 libonig5 socat
0 upgraded, 4 newly installed, 0 to remove and 35 not upgraded.
Need to get 653 kB of archives.
After this operation, 1,844 kB of additional disk space will be used.
Get:1 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/main armhf libonig5 armhf 6.9.1-1 [150 kB]
Get:2 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/main armhf libjq1 armhf 1.5+dfsg-2+b1 [119 kB]
Get:3 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/main armhf jq armhf 1.5+dfsg-2+b1 [59.3 kB]
Get:4 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/main armhf socat armhf 1.7.3.2-2 [324 kB]
Fetched 653 kB in 1s (508 kB/s)
Selecting previously unselected package libonig5:armhf.
(Reading database ... 91789 files and directories currently installed.)
Preparing to unpack .../libonig5_6.9.1-1_armhf.deb ...
Unpacking libonig5:armhf (6.9.1-1) ...
Selecting previously unselected package libjq1:armhf.
Preparing to unpack .../libjq1_1.5+dfsg-2+b1_armhf.deb ...
Unpacking libjq1:armhf (1.5+dfsg-2+b1) ...
Selecting previously unselected package jq.
Preparing to unpack .../jq_1.5+dfsg-2+b1_armhf.deb ...
Unpacking jq (1.5+dfsg-2+b1) ...
Selecting previously unselected package socat.
Preparing to unpack .../socat_1.7.3.2-2_armhf.deb ...
Unpacking socat (1.7.3.2-2) ...
Setting up socat (1.7.3.2-2) ...
Setting up libonig5:armhf (6.9.1-1) ...
Setting up libjq1:armhf (1.5+dfsg-2+b1) ...
Setting up jq (1.5+dfsg-2+b1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
[info]: 安装 Docker 引擎.....
# Executing docker install script, commit:
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL "https://mirrors.aliyun.com/docker-ce/linux/raspbian/gpg" | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sh -c echo "deb [arch=armhf] https://mirrors.aliyun.com/docker-ce/linux/raspbian buster stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ [ -n  ]
+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
E: Package 'docker-ce' has no installation candidate

########################### System version ###########################
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
########################### System version 2 ###########################
Linux version 4.19.57-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1244 SMP Thu Jul 4 18:45:25 BST 2019
########################### System info ###########################
Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux
########################### END ###########################
\033[0;31m[ERROR]: Docker 安装失败,请检查上方安装错误信息。 你也可以选择通过搜索引擎,搜索你系统安装docker的方法,安装后重新执行脚本。

root@raspberrypi:/home/pi# curl -sL -o install.sh https://raw.githubusercontent.co ... l/master/install.sh

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


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


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

1. docker-cn (docker 官方中国镜像源,阿里云提供服务,但流量大可能会卡)
2. 七牛云 docker 镜像源
请选择 docker 加速器(默认:七牛云):


(4).请选择你设备类型(默认:qemux86)
    [1]: raspberrypi
    [2]: raspberrypi2
    [3]: raspberrypi3
    [4]: qemuarm
    [5]: qemux86
    [6]: intel-nuc
输入数字 (1-6):3
你选择了 raspberrypi3


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

[info]: 切换系统网络源.....
Hit:1 https://mirrors.aliyun.com/docker-ce/linux/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 http://mirrors.ustc.edu.cn/raspbian/raspbian buster InRelease
Hit:4 http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
35 packages can be upgraded. Run 'apt list --upgradable' to see them.
[info]: 安装 hassio 必要依赖.....
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).
jq is already the newest version (1.5+dfsg-2+b1).
net-tools is already the newest version (1.60+git20180626.aebd88e-1).
socat is already the newest version (1.7.3.2-2).
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
[info]: 安装 Docker 引擎.....
# Executing docker install script, commit:
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL "https://mirrors.aliyun.com/docker-ce/linux/raspbian/gpg" | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sh -c echo "deb [arch=armhf] https://mirrors.aliyun.com/docker-ce/linux/raspbian buster stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ [ -n  ]
+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
E: Package 'docker-ce' has no installation candidate

########################### System version ###########################
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
########################### System version 2 ###########################
Linux version 4.19.57-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1244 SMP Thu Jul 4 18:45:25 BST 2019
########################### System info ###########################
Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux
########################### END ###########################
\033[0;31m[ERROR]: Docker 安装失败,请检查上方安装错误信息。 你也可以选择通过搜索引擎,搜索你系统安装docker的方法,安装后重新执行脚本。

root@raspberrypi:/home/pi#


什么问题呀
回复

使用道具 举报

15

主题

78

帖子

289

积分

中级会员

Rank: 3Rank: 3

积分
289
金钱
211
HASS币
0
发表于 2019-7-23 23:12:06 | 显示全部楼层
###############################################################################                                                                                                                                                             #
# 1. 是否将系统源切换为中科大(USTC)源: 是
# 2. 是否将用户添加至 Docker 用户组:   是,添加用户为 pi
# 3. 是否将 Docker 源切换至国内源:     是,切换源选择:七牛云
# 4. 您的设备类型为:                   raspberrypi3
# 5. 您的 hassio 数据路径为:           /usr/share/hassio
###############################################################################                                                                                                                                                             #
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

[info]: 切换系统网络源.....
备份系统源文件为 /etc/apt/sources.list.bak
Get:1 http://mirrors.ustc.edu.cn/raspbian/raspbian buster InRelease [15.0 kB]
Get:2 http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian buster InRelease                                                                                                                                                              [25.1 kB]
Get:3 http://archive.raspberrypi.org/debian buster InRelease [25.1 kB]
Get:4 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/main armhf Packages [1                                                                                                                                                             3.0 MB]
Get:5 http://archive.raspberrypi.org/debian buster/main armhf Packages [212 kB]
Get:6 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/contrib armhf Packages [58.7 kB]
Get:7 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/non-free armhf Packages [103 kB]
Get:8 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/rpi armhf Packages [1,360 B]
Get:9 http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian buster/main armhf Packages [212 kB]
Fetched 13.6 MB in 12s (1,130 kB/s)
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
avahi-daemon is already the newest version (0.7-4+b1).
curl is already the newest version (7.64.0-4).
net-tools is already the newest version (1.60+git20180626.aebd88e-1).
The following additional packages will be installed:
  libjq1 libonig5
The following NEW packages will be installed:
  jq libjq1 libonig5 socat
0 upgraded, 4 newly installed, 0 to remove and 9 not upgraded.
Need to get 653 kB of archives.
After this operation, 1,844 kB of additional disk space will be used.
Get:1 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/main armhf libonig5 armhf 6.9.1-1 [150 kB]
Get:2 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/main armhf libjq1 armhf 1.5+dfsg-2+b1 [119 kB]
Get:3 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/main armhf jq armhf 1.5+dfsg-2+b1 [59.3 kB]
Get:4 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/main armhf socat armhf 1.7.3.2-2 [324 kB]
Fetched 653 kB in 2s (273 kB/s)
Selecting previously unselected package libonig5:armhf.
(Reading database ... 37620 files and directories currently installed.)
Preparing to unpack .../libonig5_6.9.1-1_armhf.deb ...
Unpacking libonig5:armhf (6.9.1-1) ...
Selecting previously unselected package libjq1:armhf.
Preparing to unpack .../libjq1_1.5+dfsg-2+b1_armhf.deb ...
Unpacking libjq1:armhf (1.5+dfsg-2+b1) ...
Selecting previously unselected package jq.
Preparing to unpack .../jq_1.5+dfsg-2+b1_armhf.deb ...
Unpacking jq (1.5+dfsg-2+b1) ...
Selecting previously unselected package socat.
Preparing to unpack .../socat_1.7.3.2-2_armhf.deb ...
Unpacking socat (1.7.3.2-2) ...
Setting up socat (1.7.3.2-2) ...
Setting up libonig5:armhf (6.9.1-1) ...
Setting up libjq1:armhf (1.5+dfsg-2+b1) ...
Setting up jq (1.5+dfsg-2+b1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
[info]: 安装 Docker 引擎.....
# Executing docker install script, commit:
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL "https://mirrors.aliyun.com/docker-ce/linux/raspbian/gpg" | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sh -c echo "deb [arch=armhf] https://mirrors.aliyun.com/docker-ce/linux/raspbian buster stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ [ -n  ]
+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
E: Package 'docker-ce' has no installation candidate

########################### System version ###########################
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
########################### System version 2 ###########################
Linux version 4.19.57-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1244 SMP Thu Jul 4 18:45:25 BST 2019
########################### System info ###########################
Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux
########################### END ###########################
\033[0;31m[ERROR]: Docker 安装失败,请检查上方安装错误信息。 你也可以选择通过搜索引擎,搜索你系统安装docker的方法,安装后重新执行脚本。

root@raspberrypi:/home/pi#


安装了两次都这样!!!!救命呀
回复

使用道具 举报

2

主题

23

帖子

78

积分

注册会员

Rank: 2

积分
78
金钱
55
HASS币
0
发表于 2019-7-24 14:38:33 | 显示全部楼层
jackshoe 发表于 2019-7-23 23:12
###############################################################################                     ...

我也是一样的问题,这都那么都装不了docker,
回复

使用道具 举报

15

主题

78

帖子

289

积分

中级会员

Rank: 3Rank: 3

积分
289
金钱
211
HASS币
0
发表于 2019-7-24 20:11:36 | 显示全部楼层
toni615 发表于 2019-7-24 14:38
我也是一样的问题,这都那么都装不了docker,

我下了个2018的版本就可以装了!!!解决了!!!最新的树莓派系统装不了
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-29 08:03 , Processed in 0.119851 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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