源头那里选择no
################################################################################
1. 是否将系统源切换为清华源: 是
2. 是否将用户添加至 Docker 用户组: 是,添加用户为 pi
3. 是否将 Docker 源切换至国内源: 是,切换源选择:
4. 您的设备类型为: qemuarm-64
5. 您的 hassio 数据路径为: /usr/share/hassio
################################################################################
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease
Hit:2 http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease
Hit:3 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease
Ign:4 https://ookla.bintray.com/debian buster InRelease
Hit:5 http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease
Get:6 https://ookla.bintray.com/debian buster Release [4,387 B]
Fetched 4,387 B in 2s (2,207 B/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
info: 安装 hassio 必要依赖…
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease
Hit:2 http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease
Hit:3 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease
Hit:4 http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease
Ign:5 https://ookla.bintray.com/debian buster InRelease
Get:6 https://ookla.bintray.com/debian buster Release [4,387 B]
Fetched 4,387 B in 2s (2,414 B/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
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+deb10u1).
net-tools is already the newest version (1.60+git20180626.aebd88e-1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
apparmor-utils : Depends: python3-apparmor (= 2.13.2-10) but 2.13.4-2 is to be installed
E: Unable to correct problems, you have held broken packages.
################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
########################### System version 2 ###########################
Linux version 4.19.88-OPENFANS+20191229-v8 (root@cavium) (gcc version 9.1.0 (GCC)) #1 SMP PREEMPT Sun Dec 29 17:44:26 CST 2019
########################### System info ###########################
Linux raspbian 4.19.88-OPENFANS+20191229-v8 #1 SMP PREEMPT Sun Dec 29 17:44:26 CST 2019 aarch64 GNU/Linux
########################### END ###########################
\033[0;31m[ERROR]: 安装curl失败,请将检查上方安装错误信息。\033[0m
请问大佬这个系统下安装一直提示要装python3-apparmor (= 2.13.2-10)?装了新版的2.13.4-2是不是不行?直接安装2.13.2-10却提示找不到这个包
打开脚本 install.sh
把第 16 行里面的 apparmor-utils 删掉。
或者删掉 install.sh 脚本重新下载。
################################################################################
1. 是否将系统源切换为清华源: 否
2. 是否将用户添加至 Docker 用户组: 是,添加用户为 pi
3. 是否将 Docker 源切换至国内源: 否
4. 您的设备类型为: raspberrypi4-64
5. 您的 hassio 数据路径为: /usr/share/hassio
################################################################################
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。
info: 安装 hassio 必要依赖…
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease
Hit:2 http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease
Hit:3 http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease
Hit:4 http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease
Ign:5 https://ookla.bintray.com/debian buster InRelease
Get:6 https://ookla.bintray.com/debian buster Release [4,387 B]
Fetched 4,387 B in 5s (951 B/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
ant ant-contrib ant-optional bdf2psf ca-certificates-java coinor-libcbc3 coinor-libcgl1 coinor-libclp1 coinor-libcoinmp1v5 coinor-libcoinutils3v5
coinor-libosi1v5 default-jre default-jre-headless firebird3.0-common firebird3.0-common-doc firebird3.0-server-core firebird3.0-utils fontforge
fontforge-common fonts-cantarell fonts-inconsolata fonts-opensymbol java-common libabw-0.1-1 libactivation-java libaopalliance-java libapache-poi-java
libapache-pom-java libargs4j-java libasm-java libatinject-jsr330-api-java libatk-wrapper-java libatk-wrapper-java-jni libb-hooks-op-check-perl
libbase-java libbcmail-java libbcpkix-java libbcprov-java libboost-date-time1.67.0 libbsh-java libcairo-perl libcdi-api-java libcdr-0.1-1
libcglib-java libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcodemodel-java libcommons-cli-java libcommons-codec-java
libcommons-collections3-java libcommons-collections4-java libcommons-compress-java libcommons-io-java libcommons-lang3-java libcommons-logging-java
libcommons-math3-java libcommons-parent-java libcurvesapi-java libdevel-callchecker-perl libdom4j-java libdtd-parser-java libdynaloader-functions-perl
libe-book-0.1-1 libegl-dev libehcache-java libel-api-java libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libexttextcat-2.0-0 libexttextcat-data
libextutils-depends-perl libextutils-pkgconfig-perl libfastinfoset-java libfbclient2 libfluidsynth1 libflute-java libfontforge2 libfonts-java
libformula-java libfreehand-0.1-1 libgd-perl libgdraw5 libgeronimo-annotation-1.3-spec-java libgeronimo-interceptor-3.0-spec-java libgl-dev
libgl1-mesa-dev libgles-dev libgles1 libglib-perl libglu1-mesa-dev libglvnd-core-dev libglvnd-dev libglx-dev libgnutls-dane0 libgpgmepp6 libguava-java
libguice-java libhawtjni-runtime-java libhsqldb1.8.0-java libhttpclient-java libhttpcore-java libib-util libicu4j-java libilmbase23
libintellij-annotations-java libisl19 libistack-commons-java libitext-java libjansi-java libjansi-native-java libjaxb-api-java libjaxb-java
libjaxen-java libjcommon-java libjdom1-java libjetbrains-annotations-java libjsoup-java libjsp-api-java libjsr305-java liblangtag-common liblangtag1
liblayout-java libllvm7 libloader-java liblog4j1.2-java libmail-java libmaven-file-management-java libmaven-parent-java libmaven-resolver-java
libmaven-shared-io-java libmaven-shared-utils-java libmaven3-core-java libmhash2 libmicrodns0 libmodule-pluggable-perl libmodule-runtime-perl
libmspub-0.1-1 libmwaw-0.3-3 libmypaint-1.3-0 libmythes-1.2-0 libneon27-gnutls libnumbertext-1.0-0 libnumbertext-data libodfgen-0.1-1 libopenexr23
libopengl0 liborcus-0.14-0 libpagemaker-0.0-0 libpango-perl libparams-classify-perl libpentaho-reporting-flow-engine-java libpixie-java
libplexus-archiver-java libplexus-cipher-java libplexus-classworlds-java libplexus-component-annotations-java libplexus-interpolation-java
libplexus-io-java libplexus-sec-dispatcher-java libplexus-utils2-java libplymouth4 libpq5 libqxp-0.0-0 libraptor2-0 librasqal3 librdf0
librelaxng-datatype-java libreoffice-style-colibre libreoffice-style-tango librepository-java librevenge-0.0-0 librngom-java libsac-java
libsaxonhe-java libserializer-java libservlet-api-java libservlet3.1-java libsisu-guice-java libsisu-inject-java libsisu-ioc-java libsisu-plexus-java
libslf4j-java libsnappy-java libsnappy-jni libspiro0 libstaroffice-0.0-0 libstax-ex-java libstreambuffer-java libtommath1 libtxw2-java libunbound8
libuninameslist1 libvirt-clients libvisio-0.1-1 libwagon-http-java libwagon-provider-api-java libwebsocket-api-java libwpd-0.10-10 libwpg-0.3-3
libwps-0.4-4 libwxbase3.0-0v5 libwxgtk-media3.0-gtk3-0v5 libwxgtk3.0-gtk3-0v5 libx11-xcb-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev
libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxdamage-dev libxencall1
libxendevicemodel1 libxenevtchn1 libxenforeignmemory1 libxengnttab1 libxenmisc4.11 libxenstore3.0 libxentoolcore1 libxentoollog1 libxerces2-java
libxext-dev libxfixes-dev libxml-commons-external-java libxml-commons-resolver1.1-java libxml-java libxmlbeans-java libxmlsec1 libxmlsec1-nss
libxom-java libxshmfence-dev libxsom-java libxxf86vm-dev libxz-java libzmf-0.0-0 lp-solve node-normalize.css openjdk-11-jre openjdk-11-jre-headless
pkg-config wx-common wx3.0-headers x11proto-damage-dev x11proto-fixes-dev x11proto-xext-dev x11proto-xf86vidmode-dev
Use ‘apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
/usr/bin/docker
info: 发现系统已安装 docker,跳过 docker 安装
info: 跳过切换 Docker 源…
info: 安装 hassio…
./install.sh: line 283: jq: command not found
./install.sh: line 284: jq: command not found
################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
########################### System version 2 ###########################
Linux version 4.19.88-OPENFANS+20191229-v8 (root@cavium) (gcc version 9.1.0 (GCC)) #1 SMP PREEMPT Sun Dec 29 17:44:26 CST 2019
########################### System info ###########################
Linux raspbian 4.19.88-OPENFANS+20191229-v8 #1 SMP PREEMPT Sun Dec 29 17:44:26 CST 2019 aarch64 GNU/Linux
########################### END ###########################
\033[0;31m[ERROR]: 获取 hassio 版本号失败,请检查你网络与 https://version.home-assistant.io 连接是否畅通。\033[0m
删除16行可以进行下一步,但是遇到提示获取版本号失败,我试过选择机器类型5和8都不行,但是https://version.home-assistant.io/stable.json这个网站在浏览器可以直接打开,麻烦大神有空帮忙看看,谢谢
[WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 1 次重试. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 0 次重试. [ERROR]: 从 docker 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,请检查上方失败信息。
:
docker没安装成功,提供完整日志看看
docker logs -f hassio_supervisor Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker没安装成功,提供完整日志看看
我是在手机termux上安装的Ubuntu然后运行脚本,可以嘛?
没试过,不知道呢
docker logs -f hassio_supervisor Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?这是日志
不是这里。是一键脚本的安装过程日志。
(1). 是否将系统源切换为清华源(目前支持 Debian Ubuntu Raspbian 三款系统) 请输入 y or n(默认 yes):y (2). 在你系统内找到 ubuntu 用户,是否将其添加至 docker 用户组。 请输入 yes 或者 no (默认 yes): 将ubuntu用户添加至 docker 用户组。 (3).是否需要替换 docker 默认源? 请输入 yes 或者 no(默认:yes): (4).请选择你设备类型(默认:qemux86-64) [1]: intel-nuc: 英特尔的nuc小主机 [2]: odroid-c2: 韩国odroid-c2 [3]: odroid-xu: 韩国odroid-xu [4]: orangepi-prime: 香橙派 [5]: qemuarm-64: 通用arm设备(例如斐讯N1) 64位系统 [6]: qemux86-64: 通用X86(普通的PC机电脑)64位系统 [7]: raspberrypi3-64: 树莓派三代64位系统 [8]: raspberrypi4-64: 树莓派四代64位系统 [9]: tinker: 华硕tinker 输入数字 (1-9):5 你选择了 qemuarm-64 (5).是否需要设置 hassio 数据保存路径(默认:/usr/share/hassio) 请输入 yes 或 no (默认:no): hassio 数据路径为默认路径: /usr/share/hassio ################################################################################ # 1. 是否将系统源切换为清华源: 是 # 2. 是否将用户添加至 Docker 用户组: 是,添加用户为 ubuntu # 3. 是否将 Docker 源切换至国内源: 是,切换源选择: # 4. 您的设备类型为: qemuarm-64 # 5. 您的 hassio 数据路径为: /usr/share/hassio ################################################################################ 请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。 [info]: 切换系统网络源..... 命中:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports groovy InRelease 命中:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports groovy-updates InRelease 命中:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports groovy-backports InRelease 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports groovy-security InRelease 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 有 13 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。 [info]: 安装 hassio 必要依赖..... 命中:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports groovy InRelease 命中:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports groovy-updates InRelease 命中:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports groovy-backports InRelease 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports groovy-security InRelease 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 有 13 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 avahi-daemon 已经是最新版 (0.8-1ubuntu1)。 curl 已经是最新版 (7.68.0-1ubuntu2)。 net-tools 已经是最新版 (1.60+git20180626.aebd88e-1ubuntu1)。 socat 已经是最新版 (1.7.3.4-1)。 jq 已经是最新版 (1.6-1)。 qrencode 已经是最新版 (4.0.2-2)。 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 13 个软件包未被升级。 /bin/docker [info]: 发现系统已安装 docker,跳过 docker 安装 [info]: 切换 Docker 源为国内源.... System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: 主机关闭 System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: 主机关闭 [info]: 切换国内源完成 [info]: 安装 hassio...... 下载 hassio_install.sh 官方脚本 第1次 -#O#- # # 从 hub.docker.com 下载 homeassistant/qemuarm-64-homeassistant:0.110.3...... Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 10 次重试. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 9 次重试. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 8 次重试. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 7 次重试. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 6 次重试. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 5 次重试. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 4 次重试. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 3 次重试. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 2 次重试. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 1 次重试. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [WARNING]: 从 docker hub 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,第 0 次重试. [ERROR]: 从 docker 下载 homeassistant/qemuarm-64-homeassistant:0.110.3 失败,请检查上方失败信息。
[info]: 发现系统已安装 docker,跳过 docker 安装
你系统已经装了 docker ?是你自己装的还是只装了 docker clinet??
之前运行过这个脚本
systemctl start docker
journalctl -u docker -f
❯ systemctl start docker System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: 主机关闭 ❯ journalctl -u docker -f No journal files were found.
本脚本不支持不兼容 systemd 的系统。
systemd YES!