"Package systemd-resolved is not installed" - yet it is, enabled, and running

I had to reinstall my Raspberry Pi OS. Now it’s impossible to install HA supervised:

pi@hass:~ $ sudo dpkg -i homeassistant-supervised.deb
Selecting previously unselected package homeassistant-supervised.
(Reading database ... 104660 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.
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'
Unpacking homeassistant-supervised (1.5.0) ...
dpkg: dependency problems prevent configuration of homeassistant-supervised:
 homeassistant-supervised depends on systemd-resolved; however:
  Package systemd-resolved is not installed.

dpkg: error processing package homeassistant-supervised (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 homeassistant-supervised
pi@hass:~ $ systemctl status systemd-resolved
● systemd-resolved.service - Network Name Resolution
     Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-06-28 12:55:45 EAT; 1min 53s ago
       Docs: man:systemd-resolved.service(8)
             man:org.freedesktop.resolve1(5)
             https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
             https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
   Main PID: 377 (systemd-resolve)
     Status: "Processing requests..."
      Tasks: 1 (limit: 8754)
     CGroup: /system.slice/systemd-resolved.service
             └─377 /lib/systemd/systemd-resolved

Jun 28 12:55:44 hass systemd[1]: Starting Network Name Resolution...
Jun 28 12:55:45 hass systemd-resolved[377]: Positive Trust Anchors:
Jun 28 12:55:45 hass systemd-resolved[377]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
Jun 28 12:55:45 hass systemd-resolved[377]: Negative trust anchors: 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.172.in-addr.arpa 23.172.in-ad>
Jun 28 12:55:45 hass systemd-resolved[377]: Using system hostname 'hass'.
Jun 28 12:55:45 hass systemd[1]: Started Network Name Resolution.
pi@hass:~ $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

It seems that you must have debian 12 installed. You can try to upgrade os to debian 12 or use some older *.deb package made for debian 11.

1 Like

Thank you very much!
I went back to v1.4.3 and that one installed.
I will wait for Raspberry Pi OS to be updated to Debian 12 before using any v1.5.x.

Raspberry Pi OS or Raspbian is not supported by the supervised install.
It has to be pure Debian.

Same error on OrangePi 3 LTS running bullseye. Installing v1.4.3 worked. Thanks!

Which Debian version did you use for your RPi02W? Can you provide a link?

https://raspi.debian.net/

And you might need to read the boot from a binary blob post here: RaspberryPi - Debian Wiki

debian 11 already has systemd-resolved under another name.
Install with
“dpkg -i --ignore-depends=systemd-resolved ./homeassistant-supervised.deb”
or
“dpkg -i --ignore-depends=systemd-journal-remote,systemd-resolved ./homeassistant-supervised.deb”
or
“sudo BYPASS_OS_CHECK=true dpkg -i --ignore-depends=systemd-journal-remote,systemd-resolved ./homeassistant-supervised.deb”

and remove from /var/lib/dpkg/status “system-resolved” from homeassistant-supervised depends

4 Likes

excuse my newb question, but command will i use to remove?

you can create a fake systemd-resolved package using equivs which will satisfy the missing dependency.

Bug Report: Problems with systemd-resolved in 1.5.0 · Issue #304 · home-assistant/supervised-installer