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

 找回密码
 立即注册
查看: 3735|回复: 6

[求助] 解决了一个问题,又有问题??求帮忙

[复制链接]

15

主题

78

帖子

289

积分

中级会员

Rank: 3Rank: 3

积分
289
金钱
211
HASS币
0
发表于 2019-7-23 21:48:24 | 显示全部楼层 |阅读模式
##########################################################################                                                                                                                                                             #
# 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#


回复

使用道具 举报

18

主题

695

帖子

3840

积分

元老级技术达人

积分
3840
金钱
3135
HASS币
60
发表于 2019-7-23 21:54:43 | 显示全部楼层
自己先装docker再运行一键脚本安装hassio
回复

使用道具 举报

8

主题

1996

帖子

5739

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
5739
金钱
3743
HASS币
145

灌水之王

发表于 2019-7-24 07:33:11 | 显示全部楼层
继续换源呢  都出错就别换源慢点而已
回复

使用道具 举报

0

主题

177

帖子

1100

积分

金牌会员

Rank: 6Rank: 6

积分
1100
金钱
923
HASS币
0
发表于 2019-7-24 12:54:23 | 显示全部楼层
从来没换过源,都是一次成。
回复

使用道具 举报

15

主题

78

帖子

289

积分

中级会员

Rank: 3Rank: 3

积分
289
金钱
211
HASS币
0
 楼主| 发表于 2019-7-24 19:48:16 | 显示全部楼层
撸大师 发表于 2019-7-24 12:54
从来没换过源,都是一次成。

都试过了!!!换与不换都出错!!!
回复

使用道具 举报

15

主题

78

帖子

289

积分

中级会员

Rank: 3Rank: 3

积分
289
金钱
211
HASS币
0
 楼主| 发表于 2019-7-24 19:49:24 | 显示全部楼层
他是说我的系统不能安装!!!!!我觉得搞笑了!!!
回复

使用道具 举报

15

主题

78

帖子

289

积分

中级会员

Rank: 3Rank: 3

积分
289
金钱
211
HASS币
0
 楼主| 发表于 2019-7-24 20:12:43 | 显示全部楼层
jackshoe 发表于 2019-7-24 19:49
他是说我的系统不能安装!!!!!我觉得搞笑了!!!

下了个旧系统版本就可以装了!!!2019年7月的版本不能装!!!
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-6-2 18:44 , Processed in 0.052821 second(s), 29 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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