home-assistant / supervised-installer

Installer for a generic Linux system
Apache License 2.0
1.73k stars 588 forks source link

Bug Report: dpkg: error processing package homeassistant-supervised #356

Closed nadi1971 closed 8 months ago

nadi1971 commented 8 months ago

OS Version

Debian GNU/Linux 12 (bookworm)

System Information

Linux debian-ha174 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux

What happened?

When I'm trying to install HA supervised using the installer, I'm getting the following error: dpkg: error processing package homeassistant-supervised (--configure): installed homeassistant-supervised package post-installation script subprocess returned error exit status 6 Errors were encountered while processing: homeassistant-supervised E: Sub-process /usr/bin/dpkg returned an error code (1)

Machine Type

generic-x86-64

Installer output

root@debian-ha174:/home/nadav# apt install ./homeassistant-supervised.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'homeassistant-supervised' instead of './homeassistant-supervised.deb'
The following NEW packages will be installed:
  homeassistant-supervised
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/7,428 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /home/nadav/homeassistant-supervised.deb homeassistant-supervised all 1.7.0 [7,428 B]
Preconfiguring packages ...
Selecting previously unselected package homeassistant-supervised.
(Reading database ... 37096 files and directories currently installed.)
Preparing to unpack .../homeassistant-supervised.deb ...
[warn]
[warn] If you want more control over your own system, run
[warn] Home Assistant as a VM or run Home Assistant Core
[warn] via a Docker container.
[warn]
[warn] ModemManager service is enabled. This might cause issue when using serial devices.
[info] Fix kernel dmesg restriction
Adding 'diversion of /etc/NetworkManager/NetworkManager.conf to /etc/NetworkManager/NetworkManager.conf.real by homeassistant-supervised'
Adding 'diversion of /etc/NetworkManager/system-connections/default to /etc/NetworkManager/system-connections/default.real by homeassistant-supervised'
Adding 'diversion of /etc/docker/daemon.json to /etc/docker/daemon.json.real by homeassistant-supervised'
Adding 'diversion of /etc/network/interfaces to /etc/network/interfaces.real by homeassistant-supervised'
Adding 'diversion of /etc/systemd/resolved.conf to /etc/systemd/resolved.conf.real by homeassistant-supervised'
Unpacking homeassistant-supervised (1.7.0) ...
Setting up homeassistant-supervised (1.7.0) ...
[info] Reload systemd
[info] Restarting NetworkManager
[info] Enable systemd-resolved
[info] Restarting systemd-resolved
[info] Set up systemd-journal-gatewayd socket file
[info] Enable systemd-journal-gatewayd
[info] Start nfs-utils.service
[info] Restarting docker service
PING checkonline.home-assistant.io (104.26.5.238) 56(84) bytes of data.
64 bytes from checkonline.home-assistant.io (104.26.5.238): icmp_seq=1 ttl=58 time=8.78 ms

--- checkonline.home-assistant.io ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 8.779/8.779/8.779/0.000 ms
[info] Install supervisor startup scripts
[info] Install AppArmor scripts
dpkg: error processing package homeassistant-supervised (--configure):
 installed homeassistant-supervised package post-installation script subprocess returned error exit status 6
Errors were encountered while processing:
 homeassistant-supervised
E: Sub-process /usr/bin/dpkg returned an error code (1)

Relevant log output

root@debian-ha174:/home/nadav# journalctl -f
Feb 24 13:39:00 debian-ha174 dockerd[1421]: time="2024-02-24T13:39:00.723517730+02:00" level=info msg="Loading containers: done."
Feb 24 13:39:00 debian-ha174 dockerd[1421]: time="2024-02-24T13:39:00.754204382+02:00" level=info msg="Docker daemon" commit=f417435 containerd-snapshotter=false storage-driver=overlay2 version=25.0.3
Feb 24 13:39:00 debian-ha174 dockerd[1421]: time="2024-02-24T13:39:00.754304638+02:00" level=info msg="Daemon has completed initialization"
Feb 24 13:39:00 debian-ha174 dockerd[1421]: time="2024-02-24T13:39:00.804430162+02:00" level=info msg="API listen on /run/docker.sock"
Feb 24 13:39:00 debian-ha174 systemd[1]: Started docker.service - Docker Application Container Engine.
Feb 24 13:39:00 debian-ha174 systemd[1]: Reloading.
Feb 24 13:39:01 debian-ha174 systemd[1]: /etc/systemd/system/hassio-apparmor.service:4: Failed to add dependency on %SERVICE_DOCKER%, ignoring: Invalid argument
Feb 24 13:39:01 debian-ha174 systemd[1]: var-lib-docker-overlay2-opaque\x2dbug\x2dcheck3819466881-merged.mount: Deactivated successfully.
Feb 24 13:39:09 debian-ha174 systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Feb 24 13:39:28 debian-ha174 systemd[1]: systemd-hostnamed.service: Deactivated successfully.

ADR

Code of Conduct

nadi1971 commented 8 months ago

Dont set a static IP until Home assistant installation complete

kloodhu commented 6 months ago

I try to update the homeassistant-supervised when i get this error. how can i disable static ip after the error, and after home assistant is in the limbo - not working?

EDIT: solved with nmcli connection modify 'Supervisor xxxxxx' ipv4.method auto command.

roberttco commented 6 months ago

FWIW - on this closed issue - I just updated a Debina 11 system and ran into the same problem. The nmcli command did not fix anything.

philips commented 3 months ago

@roberttco did you find a solution?