|
发表于 2019-8-4 16:19:19
|
显示全部楼层
pi@raspberrypi:~ $ sudo curl -sL -o install.sh https://raw.githubusercontent.co ... l/master/install.sh
pi@raspberrypi:~ $
pi@raspberrypi:~ $ sudo chmod a+x install.sh
pi@raspberrypi:~ $ sudo ./install.sh
(1). 是否将系统源切换为中科大(USTC)源(目前支持 Debian Ubuntu Raspbian 三款系统)
请输入 y or n(默认 yes):
(2). 在你系统内找到 pi 用户,是否将其添加至 docker 用户组。
请输入 yes 或者 no (默认 yes):
将pi用户添加至 docker 用户组。
(3).是否需要替换 docker 默认源?
请输入 yes 或者 no(默认:yes):
1. docker-cn (docker 官方中国镜像源,阿里云提供服务,但流量大可能会卡)
2. 七牛云 docker 镜像源
3. 163 docker 镜像源(无 SSL)
请选择 docker 加速器(默认:七牛云):
(4).请选择你设备类型(默认:qemux86)
[1]: raspberrypi
[2]: raspberrypi2
[3]: raspberrypi3
[4]: qemuarm
[5]: qemux86
[6]: intel-nuc
输入数字 (1-6):2
你选择了 raspberrypi2
(5).是否需要设置 hassio 数据保存路径(默认:/usr/share/hassio)
请输入 yes 或 no (默认:no):
hassio 数据路径为默认路径: /usr/share/hassio
################################################################################
# 1. 是否将系统源切换为中科大(USTC)源: 是
# 2. 是否将用户添加至 Docker 用户组: 是,添加用户为 pi
# 3. 是否将 Docker 源切换至国内源: 是,切换源选择:七牛云
# 4. 您的设备类型为: raspberrypi2
# 5. 您的 hassio 数据路径为: /usr/share/hassio
################################################################################
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。
[info]: 切换系统网络源.....
备份系统源文件为 /etc/apt/sources.list.bak
Get:1 http://mirrors.ustc.edu.cn/raspbian/raspbian stretch InRelease [15.0 kB]
Get:2 http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Hit:3 http://archive.raspberrypi.org/debian stretch InRelease
Get:4 http://mirrors.ustc.edu.cn/raspbian/raspbian stretch/main armhf Packages [11.7 MB]
Get:5 http://mirrors.ustc.edu.cn/raspbian/raspbian stretch/contrib armhf Packages [56.9 kB]
Get:6 http://mirrors.ustc.edu.cn/raspbian/raspbian stretch/non-free armhf Packages [95.5 kB]
Get:7 http://mirrors.ustc.edu.cn/raspbian/raspbian stretch/rpi armhf Packages [1,360 B]
Get:8 http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian stretch/main armhf Packages [221 kB]
Get:9 http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian stretch/ui armhf Packages [45.0 kB]
Fetched 12.1 MB in 24s (498 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
[info]: 安装 hassio 必要依赖.....
Reading package lists... Done
Building dependency tree
Reading state information... Done
avahi-daemon is already the newest version (0.6.32-2).
curl is already the newest version (7.52.1-5+deb9u9).
net-tools is already the newest version (1.60+git20161116.90da8a0-1).
The following additional packages will be installed:
libjq1 libonig4
The following NEW packages will be installed:
jq libjq1 libonig4 socat
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 625 kB of archives.
After this operation, 1,822 kB of additional disk space will be used.
Get:1 http://mirrors.ustc.edu.cn/raspbian/raspbian stretch/main armhf libonig4 armhf 6.1.3-2 [127 kB]
Get:2 http://mirrors.ustc.edu.cn/raspbian/raspbian stretch/main armhf libjq1 armhf 1.5+dfsg-1.3 [119 kB]
Get:3 http://mirrors.ustc.edu.cn/raspbian/raspbian stretch/main armhf jq armhf 1.5+dfsg-1.3 [58.9 kB]
Get:4 http://mirrors.ustc.edu.cn/raspbian/raspbian stretch/main armhf socat armhf 1.7.3.1-2+deb9u1 [320 kB]
Fetched 625 kB in 3s (204 kB/s)
Selecting previously unselected package libonig4:armhf.
(Reading database ... 34852 files and directories currently installed.)
Preparing to unpack .../libonig4_6.1.3-2_armhf.deb ...
Progress: [ 0%] [.........................................................................................................]
Unpacking libonig4:armhf (6.1.3-2) ........................................................................................]
Progress: [ 9%] [##########...............................................................................................]
Selecting previously unselected package libjq1:armhf.......................................................................]
Preparing to unpack .../libjq1_1.5+dfsg-1.3_armhf.deb ...
Unpacking libjq1:armhf (1.5+dfsg-1.3) .....................................................................................]
Progress: [ 23%] [#########################................................................................................]
Selecting previously unselected package jq.#####...........................................................................]
Preparing to unpack .../jq_1.5+dfsg-1.3_armhf.deb ...
Unpacking jq (1.5+dfsg-1.3) ...######################......................................................................]
Progress: [ 38%] [########################################.................................................................]
Selecting previously unselected package socat.#################............................................................]
Preparing to unpack .../socat_1.7.3.1-2+deb9u1_armhf.deb ...
Unpacking socat (1.7.3.1-2+deb9u1) ...##############################.......................................................]
Progress: [ 52%] [#######################################################..................................................]
Setting up socat (1.7.3.1-2+deb9u1) ...#######################################.............................................]
Progress: [ 61%] [#################################################################........................................]
Setting up libonig4:armhf (6.1.3-2) ...#################################################...................................]
Progress: [ 71%] [###########################################################################..............................]
Setting up libjq1:armhf (1.5+dfsg-1.3) ...########################################################.........................]
Progress: [ 80%] [#####################################################################################....................]
Processing triggers for libc-bin (2.24-11+deb9u4) ...#######################################################...............]
Processing triggers for man-db (2.7.6.1-2) ...
Setting up jq (1.5+dfsg-1.3) ...
Progress: [ 90%] [###############################################################################################..........]
[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://mirror.azure.cn/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://mirror.azure.cn/docker-ce/linux/raspbian stretch 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: Sub-process /usr/bin/dpkg returned an error code (1)
########################### System version ###########################
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
########################### System version 2 ###########################
Linux version 4.14.79-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1159 SMP Sun Nov 4 17:50:20 GMT 2018
########################### System info ###########################
Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux
########################### END ###########################
\033[0;31m[ERROR]: Docker 安装失败,请检查上方安装错误信息。 你也可以选择通过搜索引擎,搜索你系统安装docker的方法,安装后重新执行脚本。\033[0m
|
|