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

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

HASSIO 安装一键脚本

   关闭 [复制链接]

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
 楼主| 发表于 2020-9-10 08:29:33 | 显示全部楼层
xthncn 发表于 2020-9-9 22:18
没有搞懂,树莓派新系统安装一直报错。
dpkg: 处理软件包 auditd (--configure)时出错:
已安装 auditd 软 ...

看二楼
Nero
回复

使用道具 举报

2

主题

111

帖子

1641

积分

金牌会员

Rank: 6Rank: 6

积分
1641
金钱
1530
HASS币
0
发表于 2020-9-11 21:17:42 | 显示全部楼层
请问下,如果是在unraid下的docker里面可以使用这个一键安装脚本吗?自己试了几次都失败了。先是在unraid的终端使用这个命令提示apt: command not found。
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
 楼主| 发表于 2020-9-12 11:05:53 | 显示全部楼层
yezivv 发表于 2020-9-11 21:17
请问下,如果是在unraid下的docker里面可以使用这个一键安装脚本吗?自己试了几次都失败了。先是在unraid的 ...

不可以
Nero
回复

使用道具 举报

2

主题

111

帖子

1641

积分

金牌会员

Rank: 6Rank: 6

积分
1641
金钱
1530
HASS币
0
发表于 2020-9-12 11:10:01 | 显示全部楼层

那unraid应该怎么安装hass啊
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
 楼主| 发表于 2020-9-12 11:16:12 | 显示全部楼层
yezivv 发表于 2020-9-12 11:10
那unraid应该怎么安装hass啊

unraid 不是虚拟化系统吗,KVM 虚拟一个 debian 就好了啊。或者你直接用 docker 装 homeassistant 官方镜像。善用搜索,谢谢~
Nero
回复

使用道具 举报

7

主题

397

帖子

2274

积分

金牌会员

Rank: 6Rank: 6

积分
2274
金钱
1877
HASS币
0
发表于 2020-9-14 15:04:19 | 显示全部楼层
本帖最后由 qjiang 于 2020-9-14 15:05 编辑

dpkg: 处理软件包 xxx (--configure)时出错 解决办法

第一步:备份

$ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bk
第二步:新建

$ sudo mkdir /var/lib/dpkg/info
第三步:更新

$ sudo apt-get update
$ sudo apt-get -f install
第四步:替换

$ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bk
把更新的文件替换到备份文件夹

第五步:删除

$ sudo rm -rf /var/lib/dpkg/info
把自己新建的info文件夹删掉

第六步:还原

$ sudo mv /var/lib/dpkg/info.bk /var/lib/dpkg/info
把备份的info.bk还原

评分

参与人数 2金钱 +25 收起 理由
qlql0101 + 5 大神666!
neroxps + 20 感谢楼主分享!

查看全部评分

回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
 楼主| 发表于 2020-9-14 17:37:57 | 显示全部楼层
qjiang 发表于 2020-9-14 15:04
dpkg: 处理软件包 xxx (--configure)时出错 解决办法

第一步:备份

搞不懂树莓派为何会这样。

不就是装一个 auditd ~~
Nero
回复

使用道具 举报

4

主题

107

帖子

845

积分

论坛技术达人

积分
845
金钱
728
HASS币
40
发表于 2020-9-17 14:29:59 | 显示全部楼层
@Nero 帮忙看下,目前卡在这一步了。homeassistant的image下载好了,但是container没有创建成功。

以下是完整日志:


[Info] Install cli 'ha'
等待 homeassistant 启动(由于 hassio 启动需要从 github pull addons 的库,所以启动速度视 pull 速度而定。).........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................fail
########################### Docker images ###########################
REPOSITORY                                 TAG                 IMAGE ID            CREATED             SIZE
homeassistant/armv7-hassio-supervisor      244                 47c1c24a63d6        39 hours ago        256MB
homeassistant/armv7-hassio-supervisor      latest              47c1c24a63d6        39 hours ago        256MB
homeassistant/armv7-hassio-observer        3                   597c8cb2c515        4 days ago          71.8MB
homeassistant/armv7-hassio-cli             26                  ba047d5b4b26        12 days ago         72.8MB
homeassistant/armv7-hassio-cli             latest              ba047d5b4b26        12 days ago         72.8MB
homeassistant/raspberrypi4-homeassistant   0.114.4             85080d96fbbb        3 weeks ago         1.04GB
homeassistant/raspberrypi4-homeassistant   latest              85080d96fbbb        3 weeks ago         1.04GB
homeassistant/armv7-hassio-multicast       3                   0fbd536e8547        4 weeks ago         63.3MB
homeassistant/armv7-hassio-audio           17                  811e9a849849        5 weeks ago         80.2MB
homeassistant/armv7-hassio-dns             9                   d0cc9e8fc08a        5 months ago        62.9MB
########################### Docker ps ###########################
CONTAINER ID        IMAGE                                    COMMAND                  CREATED             STATUS              PORTS                  NAMES
19d4eea227f6        homeassistant/armv7-hassio-multicast:3   "/init"                  10 minutes ago      Up 5 minutes                               hassio_multicast
0efd148ccbd9        homeassistant/armv7-hassio-observer:3    "/init"                  10 minutes ago      Up 10 minutes       0.0.0.0:4357->80/tcp   hassio_observer
b43388f389c0        homeassistant/armv7-hassio-cli:26        "/init /bin/bash -c …"   10 minutes ago      Up 10 minutes                              hassio_cli
9cdd9ca943ca        homeassistant/armv7-hassio-audio:17      "/init"                  10 minutes ago      Up 10 minutes                              hassio_audio
eab08a39058e        homeassistant/armv7-hassio-dns:9         "/init coredns -conf…"   10 minutes ago      Up 5 minutes                               hassio_dns
0a455848da7e        homeassistant/armv7-hassio-supervisor    "/init"                  10 minutes ago      Up 8 seconds                               hassio_supervisor
########################### hassio log ###########################
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing...
[06:06:11] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[06:06:11] INFO: Start local supervisor watchdog...
20-09-17 06:06:13 INFO (MainThread) [__main__] Initialize Supervisor setup
20-09-17 06:06:13 INFO (MainThread) [supervisor.bootstrap] Initialize Supervisor Sentry
20-09-17 06:06:13 INFO (MainThread) [supervisor.bootstrap] Setup coresys for machine: raspberrypi4
20-09-17 06:06:13 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attach to Supervisor homeassistant/armv7-hassio-supervisor with version 244
20-09-17 06:06:13 INFO (SyncWorker_0) [supervisor.docker.supervisor] Connect Supervisor to hassio Network
20-09-17 06:06:13 ERROR (MainThread) [supervisor.docker] Docker logging driver json-file is not supported!
20-09-17 06:06:13 INFO (MainThread) [__main__] Setup Supervisor
20-09-17 06:06:19 WARNING (MainThread) [supervisor.dbus.rauc] Host has no rauc support. OTA updates have been disabled.
20-09-17 06:06:19 INFO (MainThread) [supervisor.host.info] Update local host information
20-09-17 06:06:19 INFO (MainThread) [supervisor.host.services] Update service information
20-09-17 06:06:19 INFO (MainThread) [supervisor.host.network] Update local network information
20-09-17 06:06:20 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-09-17 06:06:20 INFO (MainThread) [supervisor.host.apparmor] Load AppArmor Profiles: {'hassio-supervisor'}
20-09-17 06:06:20 INFO (MainThread) [supervisor.host.services] Reload local service hassio-apparmor.service
20-09-17 06:06:20 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/armv7-hassio-dns with version 9
20-09-17 06:06:20 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-09-17 06:06:22 INFO (SyncWorker_0) [supervisor.docker.dns] Start DNS homeassistant/armv7-hassio-dns with version 9 - 172.30.32.3
20-09-17 06:06:22 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf
20-09-17 06:06:22 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/armv7-hassio-audio with version 17
20-09-17 06:06:22 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-09-17 06:06:23 INFO (SyncWorker_0) [supervisor.docker.audio] Start Audio homeassistant/armv7-hassio-audio with version 17 - 172.30.32.4
20-09-17 06:06:23 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/armv7-hassio-cli with version 26
20-09-17 06:06:23 INFO (MainThread) [supervisor.plugins.cli] Start cli plugin
20-09-17 06:06:26 INFO (SyncWorker_0) [supervisor.docker.cli] Start CLI homeassistant/armv7-hassio-cli with version 26 - 172.30.32.5
20-09-17 06:06:26 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/armv7-hassio-observer with version 3
20-09-17 06:06:26 INFO (MainThread) [supervisor.plugins.observer] Start observer plugin
20-09-17 06:06:28 INFO (SyncWorker_0) [supervisor.docker.observer] Start Observer homeassistant/armv7-hassio-observer with version 3 - 172.30.32.6
20-09-17 06:06:28 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/armv7-hassio-multicast with version 3
20-09-17 06:06:28 INFO (MainThread) [supervisor.plugins.multicast] Start Multicast plugin
20-09-17 06:06:29 INFO (SyncWorker_0) [supervisor.docker.multicast] Start Multicast homeassistant/armv7-hassio-multicast with version 3 - Host
20-09-17 06:06:29 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-09-17 06:06:30 INFO (MainThread) [supervisor.homeassistant.secrets] Load Home Assistant secrets: 1
20-09-17 06:06:30 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/raspberrypi4-homeassistant with version 0.114.4
20-09-17 06:06:30 INFO (MainThread) [supervisor.hassos] No Home Assistant Operating System found
20-09-17 06:06:30 INFO (MainThread) [supervisor.store.git] Load add-on /data/addons/core repository
20-09-17 06:06:30 INFO (MainThread) [supervisor.store.git] Load add-on /data/addons/git/a0d7b954 repository
20-09-17 06:06:30 INFO (MainThread) [supervisor.store] Load add-ons from store: 66 all - 66 new - 0 remove
20-09-17 06:06:30 INFO (MainThread) [supervisor.addons] Found 0 installed add-ons
20-09-17 06:06:30 INFO (MainThread) [supervisor.snapshots] Found 0 snapshot files
20-09-17 06:06:30 INFO (MainThread) [supervisor.discovery] Load 0 messages
20-09-17 06:06:30 INFO (MainThread) [supervisor.ingress] Load 0 ingress session
20-09-17 06:06:30 ERROR (MainThread) [supervisor.core] Detected unsupported OS: Raspbian GNU/Linux 10 (buster)
20-09-17 06:06:30 INFO (MainThread) [__main__] Run Supervisor
20-09-17 06:06:30 INFO (MainThread) [supervisor.api] Start API on 172.30.32.2
20-09-17 06:06:30 CRITICAL (MainThread) [supervisor.core] System running in a unsupported environment!
20-09-17 06:06:30 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' start 0 add-ons
20-09-17 06:06:30 INFO (MainThread) [supervisor.core] Supervisor reboot detected
20-09-17 06:06:30 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
20-09-17 06:06:30 INFO (MainThread) [supervisor.misc.hwmon] Started Supervisor hardware monitor
20-09-17 06:06:30 INFO (MainThread) [supervisor.core] Supervisor is up and running
20-09-17 06:06:30 INFO (MainThread) [supervisor.host.info] Update local host information
20-09-17 06:06:30 INFO (MainThread) [supervisor.host.services] Update service information
20-09-17 06:06:31 INFO (MainThread) [supervisor.host.network] Update local network information
20-09-17 06:06:31 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
[06:11:11] ERROR: Requested resource /supervisor/ping was not found
[06:11:11] WARNING: Maybe found an issue on API healthy
20-09-17 06:11:11 INFO (MainThread) [supervisor.api] Stop API on 172.30.32.2
20-09-17 06:11:11 INFO (MainThread) [supervisor.misc.scheduler] Shutdown scheduled tasks
20-09-17 06:11:11 INFO (MainThread) [supervisor.misc.hwmon] Stop Supervisor hardware monitor
20-09-17 06:11:11 INFO (MainThread) [supervisor.core] Supervisor is down
20-09-17 06:11:11 INFO (MainThread) [__main__] Close Supervisor
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing...
[06:11:24] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[06:11:24] INFO: Start local supervisor watchdog...
20-09-17 06:11:26 INFO (MainThread) [__main__] Initialize Supervisor setup
20-09-17 06:11:26 INFO (MainThread) [supervisor.bootstrap] Initialize Supervisor Sentry
20-09-17 06:11:26 INFO (MainThread) [supervisor.bootstrap] Setup coresys for machine: raspberrypi4
20-09-17 06:11:26 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attach to Supervisor homeassistant/armv7-hassio-supervisor with version 244
20-09-17 06:11:26 ERROR (MainThread) [supervisor.docker] Docker logging driver json-file is not supported!
20-09-17 06:11:26 INFO (MainThread) [__main__] Setup Supervisor
20-09-17 06:11:32 WARNING (MainThread) [supervisor.dbus.rauc] Host has no rauc support. OTA updates have been disabled.
20-09-17 06:11:32 INFO (MainThread) [supervisor.host.info] Update local host information
20-09-17 06:11:32 INFO (MainThread) [supervisor.host.services] Update service information
20-09-17 06:11:32 INFO (MainThread) [supervisor.host.network] Update local network information
20-09-17 06:11:33 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-09-17 06:11:33 INFO (MainThread) [supervisor.host.apparmor] Load AppArmor Profiles: {'hassio-supervisor'}
20-09-17 06:11:33 INFO (MainThread) [supervisor.host.services] Reload local service hassio-apparmor.service
20-09-17 06:11:33 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/armv7-hassio-dns with version 9
20-09-17 06:11:33 INFO (MainThread) [supervisor.plugins.dns] Restart CoreDNS plugin
20-09-17 06:11:33 INFO (SyncWorker_0) [supervisor.docker.interface] Restart homeassistant/armv7-hassio-dns
20-09-17 06:11:38 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf
20-09-17 06:11:38 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/armv7-hassio-audio with version 17
20-09-17 06:11:38 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/armv7-hassio-cli with version 26
20-09-17 06:11:38 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/armv7-hassio-observer with version 3
20-09-17 06:11:38 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/armv7-hassio-multicast with version 3
20-09-17 06:11:38 INFO (MainThread) [supervisor.plugins.multicast] Restart Multicast plugin
20-09-17 06:11:38 INFO (SyncWorker_0) [supervisor.docker.interface] Restart homeassistant/armv7-hassio-multicast
20-09-17 06:11:43 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-09-17 06:11:44 INFO (MainThread) [supervisor.homeassistant.secrets] Load Home Assistant secrets: 1
20-09-17 06:11:44 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/raspberrypi4-homeassistant with version 0.114.4
20-09-17 06:11:44 INFO (MainThread) [supervisor.hassos] No Home Assistant Operating System found
20-09-17 06:11:44 INFO (MainThread) [supervisor.store.git] Load add-on /data/addons/core repository
20-09-17 06:11:44 INFO (MainThread) [supervisor.store.git] Load add-on /data/addons/git/a0d7b954 repository
20-09-17 06:11:45 INFO (MainThread) [supervisor.store] Load add-ons from store: 66 all - 66 new - 0 remove
20-09-17 06:11:45 INFO (MainThread) [supervisor.addons] Found 0 installed add-ons
20-09-17 06:11:45 INFO (MainThread) [supervisor.snapshots] Found 0 snapshot files
20-09-17 06:11:45 INFO (MainThread) [supervisor.discovery] Load 0 messages
20-09-17 06:11:45 INFO (MainThread) [supervisor.ingress] Load 0 ingress session
20-09-17 06:11:45 ERROR (MainThread) [supervisor.core] Detected unsupported OS: Raspbian GNU/Linux 10 (buster)
20-09-17 06:11:45 INFO (MainThread) [__main__] Run Supervisor
20-09-17 06:11:45 INFO (MainThread) [supervisor.api] Start API on 172.30.32.2
20-09-17 06:11:45 CRITICAL (MainThread) [supervisor.core] System running in a unsupported environment!
20-09-17 06:11:45 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' start 0 add-ons
20-09-17 06:11:45 INFO (MainThread) [supervisor.core] Supervisor reboot detected
20-09-17 06:11:45 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
20-09-17 06:11:45 INFO (MainThread) [supervisor.misc.hwmon] Started Supervisor hardware monitor
20-09-17 06:11:45 INFO (MainThread) [supervisor.core] Supervisor is up and running
20-09-17 06:11:45 INFO (MainThread) [supervisor.host.info] Update local host information
20-09-17 06:11:45 INFO (MainThread) [supervisor.host.services] Update service information
20-09-17 06:11:45 INFO (MainThread) [supervisor.host.network] Update local network information
20-09-17 06:11:46 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
[06:16:25] ERROR: Requested resource /supervisor/ping was not found
[06:16:25] WARNING: Maybe found an issue on API healthy
20-09-17 06:16:25 INFO (MainThread) [supervisor.misc.scheduler] Shutdown scheduled tasks
20-09-17 06:16:25 INFO (MainThread) [supervisor.api] Stop API on 172.30.32.2
20-09-17 06:16:25 INFO (MainThread) [supervisor.misc.hwmon] Stop Supervisor hardware monitor
20-09-17 06:16:25 INFO (MainThread) [supervisor.core] Supervisor is down
20-09-17 06:16:25 INFO (MainThread) [__main__] Close Supervisor
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing...
[06:16:37] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[06:16:37] INFO: Start local supervisor watchdog...
20-09-17 06:16:39 INFO (MainThread) [__main__] Initialize Supervisor setup
20-09-17 06:16:39 INFO (MainThread) [supervisor.bootstrap] Initialize Supervisor Sentry
20-09-17 06:16:39 INFO (MainThread) [supervisor.bootstrap] Setup coresys for machine: raspberrypi4
20-09-17 06:16:39 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attach to Supervisor homeassistant/armv7-hassio-supervisor with version 244
20-09-17 06:16:39 ERROR (MainThread) [supervisor.docker] Docker logging driver json-file is not supported!
20-09-17 06:16:39 INFO (MainThread) [__main__] Setup Supervisor
########################### homeassistant log ###########################
Error: No such container: homeassistant
########################### END ###########################
 homeassistant 启动超时,请检查上方日志....或者重启操作系统
 相关问题可以访问https://bbs.iobroker.cn或者加QQ群776817275咨询
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
 楼主| 发表于 2020-9-17 14:36:31 | 显示全部楼层
seon 发表于 2020-9-17 14:29
@Nero 帮忙看下,目前卡在这一步了。homeassistant的image下载好了,但是container没有创建成功。

以下是 ...

等一下,没那么快。你 supervisor 貌似再更新。
Nero
回复

使用道具 举报

4

主题

107

帖子

845

积分

论坛技术达人

积分
845
金钱
728
HASS币
40
发表于 2020-9-17 15:16:46 | 显示全部楼层
neroxps 发表于 2020-9-17 14:36
等一下,没那么快。你 supervisor 貌似再更新。

能看到supervisor的进度日志么?homeassistant这个容器是supervisor负责创建的么?能不能在supervisor上手动执行后续的步骤呢?
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-25 10:21 , Processed in 0.072268 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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