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

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

HASSIO 安装一键脚本

   关闭 [复制链接]

12

主题

351

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
821
HASS币
0
发表于 2020-6-3 02:23:22 | 显示全部楼层
解决了。查了无数资料,用官方的64位刷写也不行,后来直接插派的usb,然后上传居然正常了,也能无线更新了,太牛了
回复

使用道具 举报

9

主题

95

帖子

470

积分

中级会员

Rank: 3Rank: 3

积分
470
金钱
375
HASS币
0
发表于 2020-6-9 13:59:44 | 显示全部楼层
这个必须收藏啊
回复

使用道具 举报

0

主题

4

帖子

45

积分

新手上路

Rank: 1

积分
45
金钱
41
HASS币
0
发表于 2020-7-5 00:32:01 | 显示全部楼层
求助,我在ubuntu里安装,docker挂载了本地目录,重启过一次后就报错了。
20-07-02 08:22:24 INFO (SyncWorker_5) [supervisor.docker.interface] Start homeassistant/qemux86-64-homeassistant
20-07-02 08:22:24 ERROR (SyncWorker_5) [supervisor.docker.interface] Can't start homeassistant/qemux86-64-homeassistant: 400 Client Error: Bad Request ("OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \\"/mnt/hgfs/hsu/tmp/homeassistant_pulse\\" to rootfs \\"/var/lib/docker/overlay2/62d900b5b3c9057a97bc89f73b137f4b94e324a054ace49cb6c92fb76451c353/merged\\" at \\"/var/lib/docker/overlay2/62d900b5b3c9057a97bc89f73b137f4b94e324a054ace49cb6c92fb76451c353/merged/etc/pulse/client.conf\\" caused \\"not a directory\\""": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type")
20-07-02 08:22:24 ERROR (MainThread) [supervisor.misc.tasks] Watchdog Home Assistant reanimation fails!
20-07-02 08:22:39 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with Home Assistant Docker!


回复

使用道具 举报

0

主题

8

帖子

106

积分

注册会员

Rank: 2

积分
106
金钱
98
HASS币
0
发表于 2020-7-5 13:09:46 | 显示全部楼层
本帖最后由 Zy143L 于 2020-7-5 13:25 编辑

这个一键安装的脚本不能使用ipv6网络访问 希望楼主可以加上这个功能---
http:
server_host: ::0

问题解决
回复

使用道具 举报

7

主题

71

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
金钱
160
HASS币
0
发表于 2020-7-13 00:51:28 | 显示全部楼层
################################################################################
# 1. 是否将系统源切换为清华源: 否
# 2. 是否将用户添加至 Docker 用户组:   是,添加用户为 admin
# 3. 是否将 Docker 源切换至国内源:     是,切换源选择:
# 4. 您的设备类型为:                   qemuarm-64
# 5. 您的 hassio 数据路径为:           /usr/share/hassio
################################################################################
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

[info]: 跳过切换系统源。
[info]: 安装 hassio 必要依赖.....
Get:1 file:/var/cache/openmediavault/archives  InRelease
Ign:1 file:/var/cache/openmediavault/archives  InRelease
Get:2 file:/var/cache/openmediavault/archives  Release
Ign:2 file:/var/cache/openmediavault/archives  Release
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:5 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:5 file:/var/cache/openmediavault/archives  Contents (deb)
Get:6 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:6 file:/var/cache/openmediavault/archives  Contents (deb)
Get:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:7 file:/var/cache/openmediavault/archives  Contents (deb)
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:5 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:5 file:/var/cache/openmediavault/archives  Contents (deb)
Get:6 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:6 file:/var/cache/openmediavault/archives  Contents (deb)
Get:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:7 file:/var/cache/openmediavault/archives  Contents (deb)
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:5 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:5 file:/var/cache/openmediavault/archives  Contents (deb)
Get:6 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:6 file:/var/cache/openmediavault/archives  Contents (deb)
Get:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:7 file:/var/cache/openmediavault/archives  Contents (deb)
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:5 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:5 file:/var/cache/openmediavault/archives  Contents (deb)
Get:6 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:6 file:/var/cache/openmediavault/archives  Contents (deb)
Get:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:7 file:/var/cache/openmediavault/archives  Contents (deb)
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:5 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:5 file:/var/cache/openmediavault/archives  Contents (deb)
Get:6 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:6 file:/var/cache/openmediavault/archives  Contents (deb)
Get:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:7 file:/var/cache/openmediavault/archives  Contents (deb)
Get:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:5 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:5 file:/var/cache/openmediavault/archives  Contents (deb)
Get:6 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:6 file:/var/cache/openmediavault/archives  Contents (deb)
Get:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:8 http://mirrors.ustc.edu.cn/debian stretch InRelease
Hit:9 http://mirrors.ustc.edu.cn/debian stretch-updates InRelease
Hit:10 http://mirrors.ustc.edu.cn/debian-security stretch/updates InRelease
Hit:11 https://mirror.azure.cn/docker-ce/linux/debian stretch InRelease
Hit:12 http://mirrors.ustc.edu.cn/debian stretch Release
Hit:13 http://packages.openmediavault.org/public arrakis InRelease
Hit:14 http://httpredir.debian.org/debian stretch-backports InRelease
Get:15 https://openmediavault.github.io/packages arrakis InRelease [12.8 kB]
Ign:17 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch InRelease
Get:18 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release [4389 B]
Hit:18 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release
Fetched 12.8 kB in 3s (4147 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
63 packages can be upgraded. Run 'apt list --upgradable' to see them.
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Debian
Description:    Debian GNU/Linux 9.12 (stretch)
Release:        9.12
Codename:       stretch
########################### System version 2 ###########################
Linux version 5.1.0-rc1-aml-s905 (root@vbox) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #5.77 SMP PREEMPT Mon Apr 8 14:21:24 MSK 2019
########################### System info ###########################
Linux aml 5.1.0-rc1-aml-s905 #5.77 SMP PREEMPT Mon Apr 8 14:21:24 MSK 2019 aarch64 GNU/Linux
########################### END ###########################
\033[0;31m[ERROR]: 安装curl失败,请将检查上方安装错误信息。\033[0m

N大,我是armbian5.77的系统,之前不能升级ha,我就卸载了hass和ha想重新安装一下,结果总是报这个错,我把sh文件打开也没找到 第 16 行里面的 apparmor-utils
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
 楼主| 发表于 2020-7-13 08:39:04 | 显示全部楼层
hlqhome 发表于 2020-7-13 00:51
################################################################################
# 1. 是否将系统源 ...

dpkg被中断,您必须手动运行'dpkg --configure -a'来解决问题。
Nero
回复

使用道具 举报

7

主题

71

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
金钱
160
HASS币
0
发表于 2020-7-13 10:16:13 | 显示全部楼层
neroxps 发表于 2020-7-13 08:39
dpkg被中断,您必须手动运行'dpkg --configure -a'来解决问题。

谢谢 N大 我一会回去执行这个命令试试
回复

使用道具 举报

7

主题

71

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
金钱
160
HASS币
0
发表于 2020-7-13 13:04:41 | 显示全部楼层
本帖最后由 hlqhome 于 2020-7-13 13:08 编辑
neroxps 发表于 2020-7-13 08:39
dpkg被中断,您必须手动运行'dpkg --configure -a'来解决问题。

N大,已经执行了这个命令了 还是报错。

###############################################################################                                                                                                                                                             #
# 1. 是否将系统源切换为清华源: 否
# 2. 是否将用户添加至 Docker 用户组:   是,添加用户为 admin
# 3. 是否将 Docker 源切换至国内源:     否
# 4. 您的设备类型为:                   qemuarm-64
# 5. 您的 hassio 数据路径为:           /usr/share/hassio
###############################################################################                                                                                                                                                             #
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

[info]: 跳过切换系统源。
[info]: 安装 hassio 必要依赖.....
Get:1 file:/var/cache/openmediavault/archives  InRelease
Ign:1 file:/var/cache/openmediavault/archives  InRelease
Get:2 file:/var/cache/openmediavault/archives  Release
Ign:2 file:/var/cache/openmediavault/archives  Release
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:5 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:5 file:/var/cache/openmediavault/archives  Contents (deb)
Get:6 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:6 file:/var/cache/openmediavault/archives  Contents (deb)
Get:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:7 file:/var/cache/openmediavault/archives  Contents (deb)
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:5 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:5 file:/var/cache/openmediavault/archives  Contents (deb)
Get:6 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:6 file:/var/cache/openmediavault/archives  Contents (deb)
Get:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:7 file:/var/cache/openmediavault/archives  Contents (deb)
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:5 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:5 file:/var/cache/openmediavault/archives  Contents (deb)
Get:6 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:6 file:/var/cache/openmediavault/archives  Contents (deb)
Get:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:7 file:/var/cache/openmediavault/archives  Contents (deb)
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:5 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:5 file:/var/cache/openmediavault/archives  Contents (deb)
Get:6 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:6 file:/var/cache/openmediavault/archives  Contents (deb)
Get:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:7 file:/var/cache/openmediavault/archives  Contents (deb)
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:5 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:5 file:/var/cache/openmediavault/archives  Contents (deb)
Get:6 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:6 file:/var/cache/openmediavault/archives  Contents (deb)
Get:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:7 file:/var/cache/openmediavault/archives  Contents (deb)
Get:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:5 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:5 file:/var/cache/openmediavault/archives  Contents (deb)
Get:6 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:6 file:/var/cache/openmediavault/archives  Contents (deb)
Get:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:7 file:/var/cache/openmediavault/archives  Contents (deb)
Ign:8 http://mirrors.ustc.edu.cn/debian stretch InRelease
Get:9 http://mirrors.ustc.edu.cn/debian stretch-updates InRelease [93.6 kB]
Hit:10 http://packages.openmediavault.org/public arrakis InRelease
Get:11 http://mirrors.ustc.edu.cn/debian-security stretch/updates InRelease [53.                                                                                                                                                             0 kB]
Hit:12 http://mirrors.ustc.edu.cn/debian stretch Release
Hit:13 https://mirror.azure.cn/docker-ce/linux/debian stretch InRelease
Get:14 http://httpredir.debian.org/debian stretch-backports InRelease [91.8 kB]
Get:15 http://mirrors.ustc.edu.cn/debian-security stretch/updates/main Sources [                                                                                                                                                             218 kB]
Get:16 https://openmediavault.github.io/packages arrakis InRelease [12.8 kB]
Get:17 http://mirrors.ustc.edu.cn/debian-security stretch/updates/main arm64 Pac                                                                                                                                                             kages [512 kB]
Get:19 http://mirrors.ustc.edu.cn/debian-security stretch/updates/main armhf Pac                                                                                                                                                             kages [508 kB]
Ign:20 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch InRelease
Get:21 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release [4389 B]
Hit:21 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release
Fetched 1490 kB in 36s (40.6 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
57 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
avahi-daemon is already the newest version (0.6.32-2).
jq is already the newest version (1.5+dfsg-1.3).
net-tools is already the newest version (1.60+git20161116.90da8a0-1).
qrencode is already the newest version (3.4.4-1+b2).
socat is already the newest version (1.7.3.1-2+deb9u1).
curl is already the newest version (7.52.1-5+deb9u10).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
vim : Depends: vim-common (= 2:8.0.0197-4+deb9u3) but 2:8.0.0197-4+deb9u1 is to be installed
vim-tiny : Depends: vim-common (= 2:8.0.0197-4+deb9u3) but 2:8.0.0197-4+deb9u1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Debian
Description:    Debian GNU/Linux 9.12 (stretch)
Release:        9.12
Codename:       stretch
########################### System version 2 ###########################
Linux version 5.1.0-rc1-aml-s905 (root@vbox) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #5.77 SMP PREEMPT Mon Apr 8 14:21:24 MSK 2019
########################### System info ###########################
Linux aml 5.1.0-rc1-aml-s905 #5.77 SMP PREEMPT Mon Apr 8 14:21:24 MSK 2019 aarch64 GNU/Linux
########################### END ###########################
\033[0;31m[ERROR]: 安装curl失败,请将检查上方安装错误信息。\033[0m

执行 apt --fix-broken install 报以下错误
...
unable to restore backup version of '/usr/bin/vimtutor': Read-only file system
dpkg: error while cleaning up:
unable to securely remove '/var/lib/dpkg/tmp.ci': Read-only file system
dpkg: error processing archive /var/cache/apt/archives/vim-common_2%3a8.0.0197-4+deb9u3_all.deb (--unpack):
error ensuring '/var/lib/dpkg/reassemble.deb' doesn't exist: Read-only file system
dpkg: error: unable to create new file '/var/lib/dpkg/status-new': Read-only file system
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
rm: cannot remove '/etc/cron.daily/mdadm': Read-only file system
Traceback (most recent call last):
  File "/usr/sbin/omv-mkaptidx", line 141, in <module>
    ), 'w'
OSError: [Errno 30] Read-only file system: '/var/lib/openmediavault/apt/upgradeindex.json'
E: Sub-process /usr/bin/dpkg returned an error code (2)
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - pkgDPkgPM::Go (30: Read-only file system)


回复

使用道具 举报

7

主题

71

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
金钱
160
HASS币
0
发表于 2020-7-13 14:06:21 | 显示全部楼层
neroxps 发表于 2020-7-13 08:39
dpkg被中断,您必须手动运行'dpkg --configure -a'来解决问题。

root@aml:~# dpkg --configure -a
dpkg: error: unable to access dpkg status area: Read-only file system
运行了这个口令提示这个
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
 楼主| 发表于 2020-7-13 15:22:48 | 显示全部楼层
hlqhome 发表于 2020-7-13 14:06
root@aml:~# dpkg --configure -a
dpkg: error: unable to access dpkg status area: Read-only file sys ...

Read-only file system

你的OMV 有问题。

mount 看看根目录是不是只读了。
Nero
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 14:55 , Processed in 0.182287 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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