|
发表于 2020-2-8 20:27:16
|
显示全部楼层
Xshell (Build N/A)
Copyright (c) 2002 NetSarang Computer, Inc. All rights reserved.
Type `help' to learn how to use Xshell prompt.
[D:\~]$
Connecting to 192.168.1.234:22...
Canceled.
Type `help' to learn how to use Xshell prompt.
[D:\~]$
[D:\~]$
Connecting to 192.168.1.234:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Feb 7 21:51:15 2020
pi@raspberrypi:~ $ sudo -i
root@raspberrypi:~# apt-get install software-properties-common
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
root@raspberrypi:~# apt-get update
Hit:1 http://mirrors.aliyun.com/raspbian/raspbian stretch InRelease
Ign:2 http://mirrors.aliyun.com/debian stretch InRelease
Get:3 http://mirrors.aliyun.com/debian stretch Release [118 kB]
Get:4 http://mirrors.aliyun.com/debian stretch Release.gpg [2,365 B]
Ign:4 http://mirrors.aliyun.com/debian stretch Release.gpg
Hit:5 https://download.docker.com/linux/debian buster InRelease
Reading package lists... Done
W: GPG error: http://mirrors.aliyun.com/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY EF0F382A1A7B6500
E: The repository 'http://mirrors.aliyun.com/debian stretch Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@raspberrypi:~# apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
root@raspberrypi:~# curl -fsSL get.docker.com | sh
# Executing docker install script, commit: f45d7c11389849ff46a6b4d94e0dd1ffebca32c1
+ sh -c apt-get update -qq >/dev/null
W: GPG error: http://mirrors.aliyun.com/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY EF0F382A1A7B6500
E: The repository 'http://mirrors.aliyun.com/debian stretch Release' is not signed.
root@raspberrypi:~# curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s -- -m raspberrypi3
root@raspberrypi:~# systemctl stop hassio-supervisor.service
Failed to stop hassio-supervisor.service: Unit hassio-supervisor.service not loaded.
root@raspberrypi:~# systemctl status hassio-supervisor.service
Unit hassio-supervisor.service could not be found.
root@raspberrypi:~# wget https://code.aliyun.com/neroxps/ ... w/master/install.sh
--2020-02-08 20:21:35-- https://code.aliyun.com/neroxps/ ... w/master/install.sh
Resolving code.aliyun.com (code.aliyun.com)... 120.55.150.20
Connecting to code.aliyun.com (code.aliyun.com)|120.55.150.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘install.sh.6’
install.sh.6 [ <=> ] 22.91K --.-KB/s in 0.03s
2020-02-08 20:21:36 (725 KB/s) - ‘install.sh.6’ saved [23463]
root@raspberrypi:~# chmod a+x install.sh
root@raspberrypi:~# ./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 镜像源
3. 163 docker 镜像源(无 SSL)
请选择 docker 加速器(默认:七牛云):1
(4).请选择你设备类型(默认:qemux86)
[1]: intel-nuc: 英特尔的nuc小主机
[2]: odroid-c2: 韩国odroid-c2
[3]: odroid-xu: 韩国odroid-xu
[4]: orangepi-prime: 香橙派
[5]: qemuarm: 通用arm设备(例如斐讯N1)
[6]: qemux86: 通用X86(普通的PC机电脑)
[7]: raspberrypi: 树莓派一代
[8]: raspberrypi2: 树莓派二代
[9]: raspberrypi3: 树莓派三代
[10]: raspberrypi4: 树莓派四代
[11]: tinker: 华硕tinker
输入数字 (1-11):9
你选择了 raspberrypi3
(5).是否需要设置 hassio 数据保存路径(默认:/usr/share/hassio)
请输入 yes 或 no (默认:no):
hassio 数据路径为默认路径: /usr/share/hassio
################################################################################
# 1. 是否将系统源切换为中科大(USTC)源: 是
# 2. 是否将用户添加至 Docker 用户组: 是,添加用户为 pi
# 3. 是否将 Docker 源切换至国内源: 是,切换源选择:docker-cn
# 4. 您的设备类型为: raspberrypi3
# 5. 您的 hassio 数据路径为: /usr/share/hassio
################################################################################
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。
[info]: 切换系统网络源.....
备份系统源文件为 /etc/apt/sources.list.bak
Ign:1 http://mirrors.aliyun.com/debian stretch InRelease
Get:2 http://mirrors.aliyun.com/debian stretch Release [118 kB]
Get:3 http://mirrors.aliyun.com/debian stretch Release.gpg [2,365 B]
Get:4 http://mirrors.ustc.edu.cn/raspbian/raspbian buster InRelease [15.0 kB]
Get:5 http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian buster InRelease [25.1 kB]
Ign:3 http://mirrors.aliyun.com/debian stretch Release.gpg
Get:6 http://mirrors.ustc.edu.cn/raspbian/raspbian buster/main armhf Packages [13.0 MB]
Hit:7 https://download.docker.com/linux/debian buster InRelease
Get:8 http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian buster/main armhf Packages [277 kB]
Reading package lists... Done
W: GPG error: http://mirrors.aliyun.com/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY EF0F382A1A7B6500
E: The repository 'http://mirrors.aliyun.com/debian stretch Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
########################### System version 2 ###########################
Linux version 4.19.75-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1270 SMP Tue Sep 24 18:45:11 BST 2019
########################### System info ###########################
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
########################### END ###########################
[ERROR]: 系统源切换错误,请检查网络连接是否正常,脚本退出
相关问题可以访问https://bbs.iobroker.cn或者加QQ群776817275咨询
root@raspberrypi:~# wget https://code.aliyun.com/neroxps/ ... w/master/install.sh
--2020-02-08 20:23:33-- https://code.aliyun.com/neroxps/ ... w/master/install.sh
Resolving code.aliyun.com (code.aliyun.com)... 120.55.150.20
Connecting to code.aliyun.com (code.aliyun.com)|120.55.150.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘install.sh.7’
install.sh.7 [ <=> ] 22.91K --.-KB/s in 0.04s
2020-02-08 20:23:33 (605 KB/s) - ‘install.sh.7’ saved [23463]
root@raspberrypi:~# chmod a+x install.sh
root@raspberrypi:~# ./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 镜像源
3. 163 docker 镜像源(无 SSL)
请选择 docker 加速器(默认:七牛云):3
(4).请选择你设备类型(默认:qemux86)
[1]: intel-nuc: 英特尔的nuc小主机
[2]: odroid-c2: 韩国odroid-c2
[3]: odroid-xu: 韩国odroid-xu
[4]: orangepi-prime: 香橙派
[5]: qemuarm: 通用arm设备(例如斐讯N1)
[6]: qemux86: 通用X86(普通的PC机电脑)
[7]: raspberrypi: 树莓派一代
[8]: raspberrypi2: 树莓派二代
[9]: raspberrypi3: 树莓派三代
[10]: raspberrypi4: 树莓派四代
[11]: tinker: 华硕tinker
输入数字 (1-11):9
你选择了 raspberrypi3
(5).是否需要设置 hassio 数据保存路径(默认:/usr/share/hassio)
请输入 yes 或 no (默认:no):
hassio 数据路径为默认路径: /usr/share/hassio
################################################################################
# 1. 是否将系统源切换为中科大(USTC)源: 是
# 2. 是否将用户添加至 Docker 用户组: 是,添加用户为 pi
# 3. 是否将 Docker 源切换至国内源: 是,切换源选择:163源
# 4. 您的设备类型为: raspberrypi3
# 5. 您的 hassio 数据路径为: /usr/share/hassio
################################################################################
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。
[info]: 切换系统网络源.....
备份系统源文件为 /etc/apt/sources.list.bak
Hit:1 http://mirrors.ustc.edu.cn/raspbian/raspbian buster InRelease
Hit:2 http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian buster InRelease
Ign:3 http://mirrors.aliyun.com/debian stretch InRelease
Get:4 http://mirrors.aliyun.com/debian stretch Release [118 kB]
Get:5 http://mirrors.aliyun.com/debian stretch Release.gpg [2,365 B]
Ign:5 http://mirrors.aliyun.com/debian stretch Release.gpg
Hit:6 https://download.docker.com/linux/debian buster InRelease
Reading package lists... Done
W: GPG error: http://mirrors.aliyun.com/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY EF0F382A1A7B6500
E: The repository 'http://mirrors.aliyun.com/debian stretch Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
########################### System version 2 ###########################
Linux version 4.19.75-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1270 SMP Tue Sep 24 18:45:11 BST 2019
########################### System info ###########################
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
########################### END ###########################
[ERROR]: 系统源切换错误,请检查网络连接是否正常,脚本退出
相关问题可以访问https://bbs.iobroker.cn或者加QQ群776817275咨询
root@raspberrypi:~# wget https://code.aliyun.com/neroxps/ ... w/master/install.sh
--2020-02-08 20:24:21-- https://code.aliyun.com/neroxps/ ... w/master/install.sh
Resolving code.aliyun.com (code.aliyun.com)... 120.55.150.20
Connecting to code.aliyun.com (code.aliyun.com)|120.55.150.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘install.sh.8’
install.sh.8 [ <=> ] 22.91K --.-KB/s in 0.03s
2020-02-08 20:24:21 (670 KB/s) - ‘install.sh.8’ saved [23463]
root@raspberrypi:~# chmod a+x install.sh
root@raspberrypi:~# ./install.sh
(1). 是否将系统源切换为中科大(USTC)源(目前支持 Debian Ubuntu Raspbian 三款系统)
请输入 y or n(默认 yes):n
(2). 找到该系统中有以下用户名
如下方列表未显示你的用户名,请切换回你用户账号后输入 sudo usermod -aG docker $USER 添加用户到 docker 用户组。
[1]: pi
[2]: systemd-coredump
: 跳过
请输入你需要使用 docker 的用户名序号,以加入 docker 用户组:1
将pi用户添加至 docker 用户组。
(3).是否需要替换 docker 默认源?
请输入 yes 或者 no(默认:yes):n
(4).请选择你设备类型(默认:qemux86)
[1]: intel-nuc: 英特尔的nuc小主机
[2]: odroid-c2: 韩国odroid-c2
[3]: odroid-xu: 韩国odroid-xu
[4]: orangepi-prime: 香橙派
[5]: qemuarm: 通用arm设备(例如斐讯N1)
[6]: qemux86: 通用X86(普通的PC机电脑)
[7]: raspberrypi: 树莓派一代
[8]: raspberrypi2: 树莓派二代
[9]: raspberrypi3: 树莓派三代
[10]: raspberrypi4: 树莓派四代
[11]: tinker: 华硕tinker
输入数字 (1-11):9
你选择了 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]: 跳过切换系统源。
[info]: 安装 hassio 必要依赖.....
Hit:1 http://mirrors.aliyun.com/raspbian/raspbian stretch InRelease
Ign:2 http://mirrors.aliyun.com/debian stretch InRelease
Get:3 http://mirrors.aliyun.com/debian stretch Release [118 kB]
Get:4 http://mirrors.aliyun.com/debian stretch Release.gpg [2,365 B]
Ign:4 http://mirrors.aliyun.com/debian stretch Release.gpg
Hit:5 https://download.docker.com/linux/debian buster InRelease
Reading package lists... Done
W: GPG error: http://mirrors.aliyun.com/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY EF0F382A1A7B6500
E: The repository 'http://mirrors.aliyun.com/debian stretch Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists... Done
Building dependency tree
Reading state information... Done
jq is already the newest version (1.5+dfsg-1.3).
socat is already the newest version (1.7.3.1-2+deb9u1).
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 package was automatically installed and is no longer required:
libssl1.0.0
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
[info]: 安装 Docker 引擎.....
# Executing docker install script, commit: f45d7c11389849ff46a6b4d94e0dd1ffebca32c1
+ sh -c apt-get update -qq >/dev/null
W: GPG error: http://mirrors.aliyun.com/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY EF0F382A1A7B6500
E: The repository 'http://mirrors.aliyun.com/debian stretch Release' is not signed.
################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
########################### System version 2 ###########################
Linux version 4.19.75-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1270 SMP Tue Sep 24 18:45:11 BST 2019
########################### System info ###########################
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
########################### END ###########################
\033[0;31m[ERROR]: Docker 安装失败,请检查上方安装错误信息。 你也可以选择通过搜索引擎,搜索你系统安装docker的方法,安装后重新执行脚本。\033[0m
相关问题可以访问https://bbs.iobroker.cn或者加QQ群776817275咨询
root@raspberrypi:~# ^C
root@raspberrypi:~# ^C
root@raspberrypi:~#
|
|