Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: systemd-resolved is listed as dependency but breaks the system #339

Open
3 tasks done
rekcodocker opened this issue Dec 10, 2023 · 32 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@rekcodocker
Copy link

OS Version

Debian 12 Bookworm latest

System Information

Linux debian 6.1.0-14-amd64

What happened?

Clean debian installation.
Trying to install HA supervised.
When I install systemd-resolved, the system can no longer resolve hostnames.
Hence I can not install docker (next step - address can not be resolved).
And I can no longer install any packeges (apt cannot resolve any hostname).

I understand this is not caused by Home assistant but is there an alternative to 'systemd-resolved'? Is the package going out of fashion?
When you build the OS version, how do you get it to work?

Machine Type

generic-x86-64

Installer output

No response

Relevant log output

No response

ADR

  • I have read through the ADR and have confirmed that my system is compliant with the requirements
  • I understand that if my system is found to not be compliant, my issue will be closed immediately without further investigation

Code of Conduct

@rekcodocker rekcodocker added the bug Something isn't working label Dec 10, 2023
@Red724
Copy link

Red724 commented Dec 12, 2023

Today I had a similar issue with installation on fresh (12.4) Debian. Even while feeling desperate and depressed I had to reinstall the system. After many hours of experiments I managed to magically solve it by removing and reinstalling systemd-resolved package. After this dns resolving has been fixed.

@mayonezo
Copy link

Can't find the source anymore, but this worked for me:

Edit /etc/systemd/resolved.conf

Uncomment the following lines and change DNS to your router/DNS-Server and DNSStubListener to no:

DNS=192.168.178.1
DNSStubListener=no

Then restart systemd-resolved:

sudo systemctl restart systemd-resolved

@Markie1306
Copy link

Can't find the source anymore, but this worked for me:

Edit /etc/systemd/resolved.conf

Uncomment the following lines and change DNS to your router/DNS-Server and DNSStubListener to no:

DNS=192.168.178.1 DNSStubListener=no

Then restart systemd-resolved:

sudo systemctl restart systemd-resolved

You really help me with this.

@makm
Copy link

makm commented Dec 24, 2023

May be it's happend couse you use su root, su - instead

@snakuzzo
Copy link

snakuzzo commented Feb 2, 2024

I checked new release 1.6.0
Now, despite the fix, the problem still exists.
When you launch the installation script, the /etc/systemd/resolved.conf is modified (again) and DNS resolution no longer works

@snakuzzo
Copy link

snakuzzo commented Feb 2, 2024

This is a fresh installation output on Debian 12.4 with latest version (1.6.0)....

Prerequisites installation:

deb@debian:~$ cat /etc/debian_version 
12.4
deb@debian:~$ 
deb@debian:~$  sudo -i
root@debian:~# 
root@debian:~# apt install apparmor cifs-utils curl dbus jq libglib2.0-bin lsb-release network-manager nfs-common systemd-journal-remote systemd-resolved udisks2 wget -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
apparmor is already the newest version (3.0.8-3).
apparmor set to manually installed.
dbus is already the newest version (1.14.10-1~deb12u1).
lsb-release is already the newest version (12.0-1).
lsb-release set to manually installed.
wget is already the newest version (1.21.3-1+b2).
The following additional packages will be installed:
  dirmngr dns-root-data dnsmasq-base dosfstools exfatprogs fuse3 gdisk gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server
  gpgconf gpgsm keyutils libassuan0 libatasmart4 libblockdev-crypto2 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2
  libblockdev-swap2 libblockdev-utils2 libblockdev2 libbluetooth3 libcurl4 libduktape207 libevent-core-2.1-7 libfuse3-3 libgpgme11 libgudev-1.0-0
  libjim0.81 libjq1 libksba8 libmbim-glib4 libmbim-proxy libmbim-utils libmicrohttpd12 libmm-glib0 libndp0 libnetfilter-conntrack3 libnfnetlink0
  libnfsidmap1 libnl-3-200 libnl-genl-3-200 libnl-route-3-200 libnm0 libnpth0 libnspr4 libnss-myhostname libnss-resolve libnss3 libntfs-3g89 libonig5
  libparted-fs-resize0 libparted2 libpcap0.8 libpcsclite1 libpolkit-agent-1-0 libpolkit-gobject-1-0 libqmi-glib5 libqmi-proxy libqmi-utils
  libqrtr-glib0 libtalloc2 libteamdctl0 libudisks2-0 libvolume-key1 libwbclient0 modemmanager ntfs-3g parted pinentry-curses polkitd ppp rpcbind
  sgml-base usb-modeswitch usb-modeswitch-data wireless-regdb wpasupplicant xml-core
Suggested packages:
  smbclient winbind pinentry-gnome3 tor parcimonie xloadimage scdaemon libparted-dev libparted-i18n pcscd libteam-utils iptables open-iscsi watchdog
  parted-doc pinentry-doc polkitd-pkla sgml-base-doc btrfs-progs f2fs-tools libblockdev-mdraid2 mdadm nilfs-tools reiserfsprogs udftools
  udisks2-bcache udisks2-btrfs udisks2-lvm2 udisks2-zram xfsprogs comgt wvdial wpagui libengine-pkcs11-openssl debhelper
The following NEW packages will be installed:
  cifs-utils curl dirmngr dns-root-data dnsmasq-base dosfstools exfatprogs fuse3 gdisk gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client
  gpg-wks-server gpgconf gpgsm jq keyutils libassuan0 libatasmart4 libblockdev-crypto2 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2
  libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libbluetooth3 libcurl4 libduktape207 libevent-core-2.1-7 libfuse3-3
  libglib2.0-bin libgpgme11 libgudev-1.0-0 libjim0.81 libjq1 libksba8 libmbim-glib4 libmbim-proxy libmbim-utils libmicrohttpd12 libmm-glib0 libndp0
  libnetfilter-conntrack3 libnfnetlink0 libnfsidmap1 libnl-3-200 libnl-genl-3-200 libnl-route-3-200 libnm0 libnpth0 libnspr4 libnss-myhostname
  libnss-resolve libnss3 libntfs-3g89 libonig5 libparted-fs-resize0 libparted2 libpcap0.8 libpcsclite1 libpolkit-agent-1-0 libpolkit-gobject-1-0
  libqmi-glib5 libqmi-proxy libqmi-utils libqrtr-glib0 libtalloc2 libteamdctl0 libudisks2-0 libvolume-key1 libwbclient0 modemmanager network-manager
  nfs-common ntfs-3g parted pinentry-curses polkitd ppp rpcbind sgml-base systemd-journal-remote systemd-resolved udisks2 usb-modeswitch
  usb-modeswitch-data wireless-regdb wpasupplicant xml-core
0 upgraded, 94 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.1 MB of archives.
After this operation, 76.5 MB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security bookworm-security/main amd64 libcurl4 amd64 7.88.1-10+deb12u5 [390 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 libevent-core-2.1-7 amd64 2.1.12-stable-8 [131 kB]
Get:3 http://security.debian.org/debian-security bookworm-security/main amd64 curl amd64 7.88.1-10+deb12u5 [315 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 libnfsidmap1 amd64 1:2.6.2-4 [54.7 kB]
Get:5 http://deb.debian.org/debian bookworm/main amd64 rpcbind amd64 1.2.6-6+b1 [48.3 kB]
Get:6 http://security.debian.org/debian-security bookworm-security/main amd64 libbluetooth3 amd64 5.66-1+deb12u1 [107 kB]
Get:7 http://deb.debian.org/debian bookworm/main amd64 keyutils amd64 1.6.3-2 [54.5 kB]
Get:8 http://deb.debian.org/debian bookworm/main amd64 nfs-common amd64 1:2.6.2-4 [260 kB]
Get:9 http://deb.debian.org/debian bookworm/main amd64 libfuse3-3 amd64 3.14.0-4 [88.1 kB]
Get:10 http://deb.debian.org/debian bookworm/main amd64 fuse3 amd64 3.14.0-4 [35.9 kB]
Get:11 http://deb.debian.org/debian bookworm/main amd64 libntfs-3g89 amd64 1:2022.10.3-1+b1 [164 kB]
Get:12 http://deb.debian.org/debian bookworm/main amd64 ntfs-3g amd64 1:2022.10.3-1+b1 [406 kB]
Get:13 http://deb.debian.org/debian bookworm/main amd64 sgml-base all 1.31 [15.4 kB]
Get:14 http://deb.debian.org/debian bookworm/main amd64 libtalloc2 amd64 2.4.0-f2 [25.6 kB]
Get:15 http://deb.debian.org/debian bookworm/main amd64 libwbclient0 amd64 2:4.17.12+dfsg-0+deb12u1 [53.9 kB]
Get:16 http://deb.debian.org/debian bookworm/main amd64 cifs-utils amd64 2:7.0-2 [94.9 kB]
Get:17 http://deb.debian.org/debian bookworm/main amd64 libassuan0 amd64 2.5.5-5 [48.5 kB]
Get:18 http://deb.debian.org/debian bookworm/main amd64 gpgconf amd64 2.2.40-1.1 [564 kB]
Get:19 http://deb.debian.org/debian bookworm/main amd64 libksba8 amd64 1.6.3-2 [128 kB]
Get:20 http://deb.debian.org/debian bookworm/main amd64 libnpth0 amd64 1.6-3 [19.0 kB]
Get:21 http://deb.debian.org/debian bookworm/main amd64 dirmngr amd64 2.2.40-1.1 [792 kB]
Get:22 http://deb.debian.org/debian bookworm/main amd64 dns-root-data all 2023010101 [4,124 B]
Get:23 http://deb.debian.org/debian bookworm/main amd64 libnfnetlink0 amd64 1.0.2-2 [15.1 kB]
Get:24 http://deb.debian.org/debian bookworm/main amd64 libnetfilter-conntrack3 amd64 1.0.9-3 [40.7 kB]
Get:25 http://deb.debian.org/debian bookworm/main amd64 dnsmasq-base amd64 2.89-1 [501 kB]
Get:26 http://deb.debian.org/debian bookworm/main amd64 dosfstools amd64 4.2-1 [142 kB]
Get:27 http://deb.debian.org/debian bookworm/main amd64 exfatprogs amd64 1.2.0-1+deb12u1 [57.7 kB]
Get:28 http://deb.debian.org/debian bookworm/main amd64 gdisk amd64 1.0.9-2.1 [221 kB]
Get:29 http://deb.debian.org/debian bookworm/main amd64 gnupg-l10n all 2.2.40-1.1 [1,093 kB]
Get:30 http://deb.debian.org/debian bookworm/main amd64 gnupg-utils amd64 2.2.40-1.1 [927 kB]
Get:31 http://deb.debian.org/debian bookworm/main amd64 gpg amd64 2.2.40-1.1 [949 kB]
Get:32 http://deb.debian.org/debian bookworm/main amd64 pinentry-curses amd64 1.2.1-1 [77.4 kB]
Get:33 http://deb.debian.org/debian bookworm/main amd64 gpg-agent amd64 2.2.40-1.1 [695 kB]
Get:34 http://deb.debian.org/debian bookworm/main amd64 gpg-wks-client amd64 2.2.40-1.1 [541 kB]
Get:35 http://deb.debian.org/debian bookworm/main amd64 gpg-wks-server amd64 2.2.40-1.1 [531 kB]
Get:36 http://deb.debian.org/debian bookworm/main amd64 gpgsm amd64 2.2.40-1.1 [671 kB]
Get:37 http://deb.debian.org/debian bookworm/main amd64 gnupg all 2.2.40-1.1 [846 kB]
Get:38 http://deb.debian.org/debian bookworm/main amd64 libonig5 amd64 6.9.8-1 [188 kB]
Get:39 http://deb.debian.org/debian bookworm/main amd64 libjq1 amd64 1.6-2.1 [135 kB]
Get:40 http://deb.debian.org/debian bookworm/main amd64 jq amd64 1.6-2.1 [64.9 kB]
Get:41 http://deb.debian.org/debian bookworm/main amd64 libatasmart4 amd64 0.19-5 [23.8 kB]
Get:42 http://deb.debian.org/debian bookworm/main amd64 libblockdev-utils2 amd64 2.28-2 [15.2 kB]
Get:43 http://deb.debian.org/debian bookworm/main amd64 libnspr4 amd64 2:4.35-1 [113 kB]
Get:44 http://deb.debian.org/debian bookworm/main amd64 libnss3 amd64 2:3.87.1-1 [1,331 kB]
Get:45 http://deb.debian.org/debian bookworm/main amd64 libgpgme11 amd64 1.18.0-3+b1 [300 kB]
Get:46 http://deb.debian.org/debian bookworm/main amd64 libvolume-key1 amd64 0.3.12-5+b1 [120 kB]
Get:47 http://deb.debian.org/debian bookworm/main amd64 libblockdev-crypto2 amd64 2.28-2 [18.3 kB]
Get:48 http://deb.debian.org/debian bookworm/main amd64 libblockdev-part-err2 amd64 2.28-2 [5,572 B]
Get:49 http://deb.debian.org/debian bookworm/main amd64 libparted2 amd64 3.5-3 [294 kB]
Get:50 http://deb.debian.org/debian bookworm/main amd64 libparted-fs-resize0 amd64 3.5-3 [38.2 kB]
Get:51 http://deb.debian.org/debian bookworm/main amd64 libblockdev-fs2 amd64 2.28-2 [22.8 kB]
Get:52 http://deb.debian.org/debian bookworm/main amd64 libblockdev-loop2 amd64 2.28-2 [8,288 B]
Get:53 http://deb.debian.org/debian bookworm/main amd64 libblockdev-part2 amd64 2.28-2 [17.4 kB]
Get:54 http://deb.debian.org/debian bookworm/main amd64 libblockdev-swap2 amd64 2.28-2 [10.2 kB]
Get:55 http://deb.debian.org/debian bookworm/main amd64 libblockdev2 amd64 2.28-2 [38.7 kB]
Get:56 http://deb.debian.org/debian bookworm/main amd64 libduktape207 amd64 2.7.0-2 [134 kB]
Get:57 http://deb.debian.org/debian bookworm/main amd64 libglib2.0-bin amd64 2.74.6-2 [110 kB]
Get:58 http://deb.debian.org/debian bookworm/main amd64 libgudev-1.0-0 amd64 237-2 [15.1 kB]
Get:59 http://deb.debian.org/debian bookworm/main amd64 libjim0.81 amd64 0.81+dfsg0-2 [127 kB]
Get:60 http://deb.debian.org/debian bookworm/main amd64 libmbim-glib4 amd64 1.28.2-1 [175 kB]
Get:61 http://deb.debian.org/debian bookworm/main amd64 libmbim-proxy amd64 1.28.2-1 [8,632 B]
Get:62 http://deb.debian.org/debian bookworm/main amd64 libmbim-utils amd64 1.28.2-1 [66.4 kB]
Get:63 http://deb.debian.org/debian bookworm/main amd64 libmicrohttpd12 amd64 0.9.75-6 [119 kB]
Get:64 http://deb.debian.org/debian bookworm/main amd64 libmm-glib0 amd64 1.20.4-1 [237 kB]
Get:65 http://deb.debian.org/debian bookworm/main amd64 libndp0 amd64 1.8-1 [12.3 kB]
Get:66 http://deb.debian.org/debian bookworm/main amd64 libnl-3-200 amd64 3.7.0-0.2+b1 [63.1 kB]
Get:67 http://deb.debian.org/debian bookworm/main amd64 libnl-genl-3-200 amd64 3.7.0-0.2+b1 [21.6 kB]
Get:68 http://deb.debian.org/debian bookworm/main amd64 libnl-route-3-200 amd64 3.7.0-0.2+b1 [185 kB]
Get:69 http://deb.debian.org/debian bookworm/main amd64 libnm0 amd64 1.42.4-1 [436 kB]
Get:70 http://deb.debian.org/debian bookworm/main amd64 libnss-myhostname amd64 252.19-1~deb12u1 [83.8 kB]
Get:71 http://deb.debian.org/debian bookworm/main amd64 systemd-resolved amd64 252.19-1~deb12u1 [304 kB]
Get:72 http://deb.debian.org/debian bookworm/main amd64 libnss-resolve amd64 252.19-1~deb12u1 [97.2 kB]
Get:73 http://deb.debian.org/debian bookworm/main amd64 libpcap0.8 amd64 1.10.3-1 [157 kB]
Get:74 http://deb.debian.org/debian bookworm/main amd64 libpcsclite1 amd64 1.9.9-2 [49.7 kB]
Get:75 http://deb.debian.org/debian bookworm/main amd64 libpolkit-gobject-1-0 amd64 122-3 [43.9 kB]
Get:76 http://deb.debian.org/debian bookworm/main amd64 libpolkit-agent-1-0 amd64 122-3 [24.4 kB]
Get:77 http://deb.debian.org/debian bookworm/main amd64 libqrtr-glib0 amd64 1.2.2-1 [16.6 kB]
Get:78 http://deb.debian.org/debian bookworm/main amd64 libqmi-glib5 amd64 1.32.2-1 [715 kB]
Get:79 http://deb.debian.org/debian bookworm/main amd64 libqmi-proxy amd64 1.32.2-1 [9,312 B]
Get:80 http://deb.debian.org/debian bookworm/main amd64 libqmi-utils amd64 1.32.2-1 [189 kB]
Get:81 http://deb.debian.org/debian bookworm/main amd64 libteamdctl0 amd64 1.31-1 [12.1 kB]
Get:82 http://deb.debian.org/debian bookworm/main amd64 libudisks2-0 amd64 2.9.4-4 [147 kB]
Get:83 http://deb.debian.org/debian bookworm/main amd64 xml-core all 0.18+nmu1 [23.8 kB]
Get:84 http://deb.debian.org/debian bookworm/main amd64 polkitd amd64 122-3 [112 kB]
Get:85 http://deb.debian.org/debian bookworm/main amd64 modemmanager amd64 1.20.4-1 [1,008 kB]
Get:86 http://deb.debian.org/debian bookworm/main amd64 network-manager amd64 1.42.4-1 [3,141 kB]
Get:87 http://deb.debian.org/debian bookworm/main amd64 parted amd64 3.5-3 [39.1 kB]
Get:88 http://deb.debian.org/debian bookworm/main amd64 ppp amd64 2.4.9-1+1.1+b1 [364 kB]
Get:89 http://deb.debian.org/debian bookworm/main amd64 systemd-journal-remote amd64 252.19-1~deb12u1 [96.3 kB]
Get:90 http://deb.debian.org/debian bookworm/main amd64 udisks2 amd64 2.9.4-4 [402 kB]
Get:91 http://deb.debian.org/debian bookworm/main amd64 usb-modeswitch-data all 20191128-5 [47.9 kB]
Get:92 http://deb.debian.org/debian bookworm/main amd64 usb-modeswitch amd64 2.6.1-3+b1 [59.6 kB]
Get:93 http://deb.debian.org/debian bookworm/main amd64 wireless-regdb all 2022.06.06-1 [13.1 kB]
Get:94 http://deb.debian.org/debian bookworm/main amd64 wpasupplicant amd64 2:2.10-12 [1,418 kB]
Fetched 24.1 MB in 1s (17.3 MB/s)           
Extracting templates from packages: 100%
Selecting previously unselected package libevent-core-2.1-7:amd64.
(Reading database ... 37413 files and directories currently installed.)
Preparing to unpack .../0-libevent-core-2.1-7_2.1.12-stable-8_amd64.deb ...
Unpacking libevent-core-2.1-7:amd64 (2.1.12-stable-8) ...
Selecting previously unselected package libnfsidmap1:amd64.
Preparing to unpack .../1-libnfsidmap1_1%3a2.6.2-4_amd64.deb ...
Unpacking libnfsidmap1:amd64 (1:2.6.2-4) ...
Selecting previously unselected package rpcbind.
Preparing to unpack .../2-rpcbind_1.2.6-6+b1_amd64.deb ...
Unpacking rpcbind (1.2.6-6+b1) ...
Selecting previously unselected package keyutils.
Preparing to unpack .../3-keyutils_1.6.3-2_amd64.deb ...
Unpacking keyutils (1.6.3-2) ...
Selecting previously unselected package nfs-common.
Preparing to unpack .../4-nfs-common_1%3a2.6.2-4_amd64.deb ...
Unpacking nfs-common (1:2.6.2-4) ...
Selecting previously unselected package libfuse3-3:amd64.
Preparing to unpack .../5-libfuse3-3_3.14.0-4_amd64.deb ...
Unpacking libfuse3-3:amd64 (3.14.0-4) ...
Selecting previously unselected package fuse3.
Preparing to unpack .../6-fuse3_3.14.0-4_amd64.deb ...
Unpacking fuse3 (3.14.0-4) ...
Selecting previously unselected package libntfs-3g89:amd64.
Preparing to unpack .../7-libntfs-3g89_1%3a2022.10.3-1+b1_amd64.deb ...
Unpacking libntfs-3g89:amd64 (1:2022.10.3-1+b1) ...
Setting up libfuse3-3:amd64 (3.14.0-4) ...
Setting up fuse3 (3.14.0-4) ...
update-initramfs: deferring update (trigger activated)
Selecting previously unselected package ntfs-3g.
(Reading database ... 37584 files and directories currently installed.)
Preparing to unpack .../00-ntfs-3g_1%3a2022.10.3-1+b1_amd64.deb ...
Unpacking ntfs-3g (1:2022.10.3-1+b1) ...
Selecting previously unselected package sgml-base.
Preparing to unpack .../01-sgml-base_1.31_all.deb ...
Unpacking sgml-base (1.31) ...
Selecting previously unselected package libtalloc2:amd64.
Preparing to unpack .../02-libtalloc2_2.4.0-f2_amd64.deb ...
Unpacking libtalloc2:amd64 (2.4.0-f2) ...
Selecting previously unselected package libwbclient0:amd64.
Preparing to unpack .../03-libwbclient0_2%3a4.17.12+dfsg-0+deb12u1_amd64.deb ...
Unpacking libwbclient0:amd64 (2:4.17.12+dfsg-0+deb12u1) ...
Selecting previously unselected package cifs-utils.
Preparing to unpack .../04-cifs-utils_2%3a7.0-2_amd64.deb ...
Unpacking cifs-utils (2:7.0-2) ...
Selecting previously unselected package libcurl4:amd64.
Preparing to unpack .../05-libcurl4_7.88.1-10+deb12u5_amd64.deb ...
Unpacking libcurl4:amd64 (7.88.1-10+deb12u5) ...
Selecting previously unselected package curl.
Preparing to unpack .../06-curl_7.88.1-10+deb12u5_amd64.deb ...
Unpacking curl (7.88.1-10+deb12u5) ...
Selecting previously unselected package libassuan0:amd64.
Preparing to unpack .../07-libassuan0_2.5.5-5_amd64.deb ...
Unpacking libassuan0:amd64 (2.5.5-5) ...
Selecting previously unselected package gpgconf.
Preparing to unpack .../08-gpgconf_2.2.40-1.1_amd64.deb ...
Unpacking gpgconf (2.2.40-1.1) ...
Selecting previously unselected package libksba8:amd64.
Preparing to unpack .../09-libksba8_1.6.3-2_amd64.deb ...
Unpacking libksba8:amd64 (1.6.3-2) ...
Selecting previously unselected package libnpth0:amd64.
Preparing to unpack .../10-libnpth0_1.6-3_amd64.deb ...
Unpacking libnpth0:amd64 (1.6-3) ...
Selecting previously unselected package dirmngr.
Preparing to unpack .../11-dirmngr_2.2.40-1.1_amd64.deb ...
Unpacking dirmngr (2.2.40-1.1) ...
Selecting previously unselected package dns-root-data.
Preparing to unpack .../12-dns-root-data_2023010101_all.deb ...
Unpacking dns-root-data (2023010101) ...
Selecting previously unselected package libnfnetlink0:amd64.
Preparing to unpack .../13-libnfnetlink0_1.0.2-2_amd64.deb ...
Unpacking libnfnetlink0:amd64 (1.0.2-2) ...
Selecting previously unselected package libnetfilter-conntrack3:amd64.
Preparing to unpack .../14-libnetfilter-conntrack3_1.0.9-3_amd64.deb ...
Unpacking libnetfilter-conntrack3:amd64 (1.0.9-3) ...
Selecting previously unselected package dnsmasq-base.
Preparing to unpack .../15-dnsmasq-base_2.89-1_amd64.deb ...
Unpacking dnsmasq-base (2.89-1) ...
Selecting previously unselected package dosfstools.
Preparing to unpack .../16-dosfstools_4.2-1_amd64.deb ...
Unpacking dosfstools (4.2-1) ...
Selecting previously unselected package exfatprogs.
Preparing to unpack .../17-exfatprogs_1.2.0-1+deb12u1_amd64.deb ...
Unpacking exfatprogs (1.2.0-1+deb12u1) ...
Selecting previously unselected package gdisk.
Preparing to unpack .../18-gdisk_1.0.9-2.1_amd64.deb ...
Unpacking gdisk (1.0.9-2.1) ...
Selecting previously unselected package gnupg-l10n.
Preparing to unpack .../19-gnupg-l10n_2.2.40-1.1_all.deb ...
Unpacking gnupg-l10n (2.2.40-1.1) ...
Selecting previously unselected package gnupg-utils.
Preparing to unpack .../20-gnupg-utils_2.2.40-1.1_amd64.deb ...
Unpacking gnupg-utils (2.2.40-1.1) ...
Selecting previously unselected package gpg.
Preparing to unpack .../21-gpg_2.2.40-1.1_amd64.deb ...
Unpacking gpg (2.2.40-1.1) ...
Selecting previously unselected package pinentry-curses.
Preparing to unpack .../22-pinentry-curses_1.2.1-1_amd64.deb ...
Unpacking pinentry-curses (1.2.1-1) ...
Selecting previously unselected package gpg-agent.
Preparing to unpack .../23-gpg-agent_2.2.40-1.1_amd64.deb ...
Unpacking gpg-agent (2.2.40-1.1) ...
Selecting previously unselected package gpg-wks-client.
Preparing to unpack .../24-gpg-wks-client_2.2.40-1.1_amd64.deb ...
Unpacking gpg-wks-client (2.2.40-1.1) ...
Selecting previously unselected package gpg-wks-server.
Preparing to unpack .../25-gpg-wks-server_2.2.40-1.1_amd64.deb ...
Unpacking gpg-wks-server (2.2.40-1.1) ...
Selecting previously unselected package gpgsm.
Preparing to unpack .../26-gpgsm_2.2.40-1.1_amd64.deb ...
Unpacking gpgsm (2.2.40-1.1) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../27-gnupg_2.2.40-1.1_all.deb ...
Unpacking gnupg (2.2.40-1.1) ...
Selecting previously unselected package libonig5:amd64.
Preparing to unpack .../28-libonig5_6.9.8-1_amd64.deb ...
Unpacking libonig5:amd64 (6.9.8-1) ...
Selecting previously unselected package libjq1:amd64.
Preparing to unpack .../29-libjq1_1.6-2.1_amd64.deb ...
Unpacking libjq1:amd64 (1.6-2.1) ...
Selecting previously unselected package jq.
Preparing to unpack .../30-jq_1.6-2.1_amd64.deb ...
Unpacking jq (1.6-2.1) ...
Selecting previously unselected package libatasmart4:amd64.
Preparing to unpack .../31-libatasmart4_0.19-5_amd64.deb ...
Unpacking libatasmart4:amd64 (0.19-5) ...
Selecting previously unselected package libblockdev-utils2:amd64.
Preparing to unpack .../32-libblockdev-utils2_2.28-2_amd64.deb ...
Unpacking libblockdev-utils2:amd64 (2.28-2) ...
Selecting previously unselected package libnspr4:amd64.
Preparing to unpack .../33-libnspr4_2%3a4.35-1_amd64.deb ...
Unpacking libnspr4:amd64 (2:4.35-1) ...
Selecting previously unselected package libnss3:amd64.
Preparing to unpack .../34-libnss3_2%3a3.87.1-1_amd64.deb ...
Unpacking libnss3:amd64 (2:3.87.1-1) ...
Selecting previously unselected package libgpgme11:amd64.
Preparing to unpack .../35-libgpgme11_1.18.0-3+b1_amd64.deb ...
Unpacking libgpgme11:amd64 (1.18.0-3+b1) ...
Selecting previously unselected package libvolume-key1:amd64.
Preparing to unpack .../36-libvolume-key1_0.3.12-5+b1_amd64.deb ...
Unpacking libvolume-key1:amd64 (0.3.12-5+b1) ...
Selecting previously unselected package libblockdev-crypto2:amd64.
Preparing to unpack .../37-libblockdev-crypto2_2.28-2_amd64.deb ...
Unpacking libblockdev-crypto2:amd64 (2.28-2) ...
Selecting previously unselected package libblockdev-part-err2:amd64.
Preparing to unpack .../38-libblockdev-part-err2_2.28-2_amd64.deb ...
Unpacking libblockdev-part-err2:amd64 (2.28-2) ...
Selecting previously unselected package libparted2:amd64.
Preparing to unpack .../39-libparted2_3.5-3_amd64.deb ...
Unpacking libparted2:amd64 (3.5-3) ...
Selecting previously unselected package libparted-fs-resize0:amd64.
Preparing to unpack .../40-libparted-fs-resize0_3.5-3_amd64.deb ...
Unpacking libparted-fs-resize0:amd64 (3.5-3) ...
Selecting previously unselected package libblockdev-fs2:amd64.
Preparing to unpack .../41-libblockdev-fs2_2.28-2_amd64.deb ...
Unpacking libblockdev-fs2:amd64 (2.28-2) ...
Selecting previously unselected package libblockdev-loop2:amd64.
Preparing to unpack .../42-libblockdev-loop2_2.28-2_amd64.deb ...
Unpacking libblockdev-loop2:amd64 (2.28-2) ...
Selecting previously unselected package libblockdev-part2:amd64.
Preparing to unpack .../43-libblockdev-part2_2.28-2_amd64.deb ...
Unpacking libblockdev-part2:amd64 (2.28-2) ...
Selecting previously unselected package libblockdev-swap2:amd64.
Preparing to unpack .../44-libblockdev-swap2_2.28-2_amd64.deb ...
Unpacking libblockdev-swap2:amd64 (2.28-2) ...
Selecting previously unselected package libblockdev2:amd64.
Preparing to unpack .../45-libblockdev2_2.28-2_amd64.deb ...
Unpacking libblockdev2:amd64 (2.28-2) ...
Selecting previously unselected package libbluetooth3:amd64.
Preparing to unpack .../46-libbluetooth3_5.66-1+deb12u1_amd64.deb ...
Unpacking libbluetooth3:amd64 (5.66-1+deb12u1) ...
Selecting previously unselected package libduktape207:amd64.
Preparing to unpack .../47-libduktape207_2.7.0-2_amd64.deb ...
Unpacking libduktape207:amd64 (2.7.0-2) ...
Selecting previously unselected package libglib2.0-bin.
Preparing to unpack .../48-libglib2.0-bin_2.74.6-2_amd64.deb ...
Unpacking libglib2.0-bin (2.74.6-2) ...
Selecting previously unselected package libgudev-1.0-0:amd64.
Preparing to unpack .../49-libgudev-1.0-0_237-2_amd64.deb ...
Unpacking libgudev-1.0-0:amd64 (237-2) ...
Selecting previously unselected package libjim0.81:amd64.
Preparing to unpack .../50-libjim0.81_0.81+dfsg0-2_amd64.deb ...
Unpacking libjim0.81:amd64 (0.81+dfsg0-2) ...
Selecting previously unselected package libmbim-glib4:amd64.
Preparing to unpack .../51-libmbim-glib4_1.28.2-1_amd64.deb ...
Unpacking libmbim-glib4:amd64 (1.28.2-1) ...
Selecting previously unselected package libmbim-proxy.
Preparing to unpack .../52-libmbim-proxy_1.28.2-1_amd64.deb ...
Unpacking libmbim-proxy (1.28.2-1) ...
Selecting previously unselected package libmbim-utils.
Preparing to unpack .../53-libmbim-utils_1.28.2-1_amd64.deb ...
Unpacking libmbim-utils (1.28.2-1) ...
Selecting previously unselected package libmicrohttpd12:amd64.
Preparing to unpack .../54-libmicrohttpd12_0.9.75-6_amd64.deb ...
Unpacking libmicrohttpd12:amd64 (0.9.75-6) ...
Selecting previously unselected package libmm-glib0:amd64.
Preparing to unpack .../55-libmm-glib0_1.20.4-1_amd64.deb ...
Unpacking libmm-glib0:amd64 (1.20.4-1) ...
Selecting previously unselected package libndp0:amd64.
Preparing to unpack .../56-libndp0_1.8-1_amd64.deb ...
Unpacking libndp0:amd64 (1.8-1) ...
Selecting previously unselected package libnl-3-200:amd64.
Preparing to unpack .../57-libnl-3-200_3.7.0-0.2+b1_amd64.deb ...
Unpacking libnl-3-200:amd64 (3.7.0-0.2+b1) ...
Selecting previously unselected package libnl-genl-3-200:amd64.
Preparing to unpack .../58-libnl-genl-3-200_3.7.0-0.2+b1_amd64.deb ...
Unpacking libnl-genl-3-200:amd64 (3.7.0-0.2+b1) ...
Selecting previously unselected package libnl-route-3-200:amd64.
Preparing to unpack .../59-libnl-route-3-200_3.7.0-0.2+b1_amd64.deb ...
Unpacking libnl-route-3-200:amd64 (3.7.0-0.2+b1) ...
Selecting previously unselected package libnm0:amd64.
Preparing to unpack .../60-libnm0_1.42.4-1_amd64.deb ...
Unpacking libnm0:amd64 (1.42.4-1) ...
Selecting previously unselected package libnss-myhostname:amd64.
Preparing to unpack .../61-libnss-myhostname_252.19-1~deb12u1_amd64.deb ...
Unpacking libnss-myhostname:amd64 (252.19-1~deb12u1) ...
Selecting previously unselected package systemd-resolved.
Preparing to unpack .../62-systemd-resolved_252.19-1~deb12u1_amd64.deb ...
Unpacking systemd-resolved (252.19-1~deb12u1) ...
Selecting previously unselected package libnss-resolve:amd64.
Preparing to unpack .../63-libnss-resolve_252.19-1~deb12u1_amd64.deb ...
Unpacking libnss-resolve:amd64 (252.19-1~deb12u1) ...
Selecting previously unselected package libpcap0.8:amd64.
Preparing to unpack .../64-libpcap0.8_1.10.3-1_amd64.deb ...
Unpacking libpcap0.8:amd64 (1.10.3-1) ...
Selecting previously unselected package libpcsclite1:amd64.
Preparing to unpack .../65-libpcsclite1_1.9.9-2_amd64.deb ...
Unpacking libpcsclite1:amd64 (1.9.9-2) ...
Selecting previously unselected package libpolkit-gobject-1-0:amd64.
Preparing to unpack .../66-libpolkit-gobject-1-0_122-3_amd64.deb ...
Unpacking libpolkit-gobject-1-0:amd64 (122-3) ...
Selecting previously unselected package libpolkit-agent-1-0:amd64.
Preparing to unpack .../67-libpolkit-agent-1-0_122-3_amd64.deb ...
Unpacking libpolkit-agent-1-0:amd64 (122-3) ...
Selecting previously unselected package libqrtr-glib0:amd64.
Preparing to unpack .../68-libqrtr-glib0_1.2.2-1_amd64.deb ...
Unpacking libqrtr-glib0:amd64 (1.2.2-1) ...
Selecting previously unselected package libqmi-glib5:amd64.
Preparing to unpack .../69-libqmi-glib5_1.32.2-1_amd64.deb ...
Unpacking libqmi-glib5:amd64 (1.32.2-1) ...
Selecting previously unselected package libqmi-proxy.
Preparing to unpack .../70-libqmi-proxy_1.32.2-1_amd64.deb ...
Unpacking libqmi-proxy (1.32.2-1) ...
Selecting previously unselected package libqmi-utils.
Preparing to unpack .../71-libqmi-utils_1.32.2-1_amd64.deb ...
Unpacking libqmi-utils (1.32.2-1) ...
Selecting previously unselected package libteamdctl0:amd64.
Preparing to unpack .../72-libteamdctl0_1.31-1_amd64.deb ...
Unpacking libteamdctl0:amd64 (1.31-1) ...
Selecting previously unselected package libudisks2-0:amd64.
Preparing to unpack .../73-libudisks2-0_2.9.4-4_amd64.deb ...
Unpacking libudisks2-0:amd64 (2.9.4-4) ...
Selecting previously unselected package xml-core.
Preparing to unpack .../74-xml-core_0.18+nmu1_all.deb ...
Unpacking xml-core (0.18+nmu1) ...
Selecting previously unselected package polkitd.
Preparing to unpack .../75-polkitd_122-3_amd64.deb ...
Unpacking polkitd (122-3) ...
Selecting previously unselected package modemmanager.
Preparing to unpack .../76-modemmanager_1.20.4-1_amd64.deb ...
Unpacking modemmanager (1.20.4-1) ...
Selecting previously unselected package network-manager.
Preparing to unpack .../77-network-manager_1.42.4-1_amd64.deb ...
Unpacking network-manager (1.42.4-1) ...
Selecting previously unselected package parted.
Preparing to unpack .../78-parted_3.5-3_amd64.deb ...
Unpacking parted (3.5-3) ...
Selecting previously unselected package ppp.
Preparing to unpack .../79-ppp_2.4.9-1+1.1+b1_amd64.deb ...
Unpacking ppp (2.4.9-1+1.1+b1) ...
Selecting previously unselected package systemd-journal-remote.
Preparing to unpack .../80-systemd-journal-remote_252.19-1~deb12u1_amd64.deb ...
Unpacking systemd-journal-remote (252.19-1~deb12u1) ...
Selecting previously unselected package udisks2.
Preparing to unpack .../81-udisks2_2.9.4-4_amd64.deb ...
Unpacking udisks2 (2.9.4-4) ...
Selecting previously unselected package usb-modeswitch-data.
Preparing to unpack .../82-usb-modeswitch-data_20191128-5_all.deb ...
Unpacking usb-modeswitch-data (20191128-5) ...
Selecting previously unselected package usb-modeswitch.
Preparing to unpack .../83-usb-modeswitch_2.6.1-3+b1_amd64.deb ...
Unpacking usb-modeswitch (2.6.1-3+b1) ...
Selecting previously unselected package wireless-regdb.
Preparing to unpack .../84-wireless-regdb_2022.06.06-1_all.deb ...
Unpacking wireless-regdb (2022.06.06-1) ...
Selecting previously unselected package wpasupplicant.
Preparing to unpack .../85-wpasupplicant_2%3a2.10-12_amd64.deb ...
Unpacking wpasupplicant (2:2.10-12) ...
Setting up libksba8:amd64 (1.6.3-2) ...
Setting up libnfsidmap1:amd64 (1:2.6.2-4) ...
Setting up exfatprogs (1.2.0-1+deb12u1) ...
Setting up wireless-regdb (2022.06.06-1) ...
update-alternatives: using /lib/firmware/regulatory.db-debian to provide /lib/firmware/regulatory.db (regulatory.db) in auto mode
Setting up dosfstools (4.2-1) ...
Setting up libglib2.0-bin (2.74.6-2) ...
Setting up rpcbind (1.2.6-6+b1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/rpcbind.service → /lib/systemd/system/rpcbind.service.
Created symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket → /lib/systemd/system/rpcbind.socket.
Setting up libnpth0:amd64 (1.6-3) ...
Setting up libntfs-3g89:amd64 (1:2022.10.3-1+b1) ...
Setting up libassuan0:amd64 (2.5.5-5) ...
Setting up libmicrohttpd12:amd64 (0.9.75-6) ...
Setting up libwbclient0:amd64 (2:4.17.12+dfsg-0+deb12u1) ...
Setting up ntfs-3g (1:2022.10.3-1+b1) ...
Setting up dns-root-data (2023010101) ...
Setting up libtalloc2:amd64 (2.4.0-f2) ...
Setting up gdisk (1.0.9-2.1) ...
Setting up libqrtr-glib0:amd64 (1.2.2-1) ...
Setting up libatasmart4:amd64 (0.19-5) ...
Setting up libpcap0.8:amd64 (1.10.3-1) ...
Setting up libblockdev-utils2:amd64 (2.28-2) ...
Setting up libnspr4:amd64 (2:4.35-1) ...
Setting up gnupg-l10n (2.2.40-1.1) ...
Setting up libteamdctl0:amd64 (1.31-1) ...
Setting up usb-modeswitch-data (20191128-5) ...
Setting up libevent-core-2.1-7:amd64 (2.1.12-stable-8) ...
Setting up libnss-myhostname:amd64 (252.19-1~deb12u1) ...
Setting up libpcsclite1:amd64 (1.9.9-2) ...
Setting up libnm0:amd64 (1.42.4-1) ...
Setting up ppp (2.4.9-1+1.1+b1) ...
Setting up libparted2:amd64 (3.5-3) ...
Setting up keyutils (1.6.3-2) ...
Setting up libparted-fs-resize0:amd64 (3.5-3) ...
Setting up libduktape207:amd64 (2.7.0-2) ...
Setting up libmm-glib0:amd64 (1.20.4-1) ...
Setting up libbluetooth3:amd64 (5.66-1+deb12u1) ...
Setting up libnfnetlink0:amd64 (1.0.2-2) ...
Setting up libnl-3-200:amd64 (3.7.0-0.2+b1) ...
Setting up gpgconf (2.2.40-1.1) ...
Setting up libblockdev-part-err2:amd64 (2.28-2) ...
Setting up libcurl4:amd64 (7.88.1-10+deb12u5) ...
Setting up sgml-base (1.31) ...
Setting up curl (7.88.1-10+deb12u5) ...
Setting up libndp0:amd64 (1.8-1) ...
Setting up libjim0.81:amd64 (0.81+dfsg0-2) ...
Setting up libonig5:amd64 (6.9.8-1) ...
Setting up gpg (2.2.40-1.1) ...
Setting up libgudev-1.0-0:amd64 (237-2) ...
Setting up libpolkit-gobject-1-0:amd64 (122-3) ...
Setting up libmbim-glib4:amd64 (1.28.2-1) ...
Setting up libudisks2-0:amd64 (2.9.4-4) ...
Setting up gnupg-utils (2.2.40-1.1) ...
Setting up systemd-resolved (252.19-1~deb12u1) ...
Converting /etc/resolv.conf to a symlink to /run/systemd/resolve/stub-resolv.conf...
Created symlink /etc/systemd/system/dbus-org.freedesktop.resolve1.service → /lib/systemd/system/systemd-resolved.service.
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-resolved.service → /lib/systemd/system/systemd-resolved.service.
Setting up pinentry-curses (1.2.1-1) ...
Setting up gpg-agent (2.2.40-1.1) ...
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-browser.socket → /usr/lib/systemd/user/gpg-agent-browser.socket.
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-extra.socket → /usr/lib/systemd/user/gpg-agent-extra.socket.
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket → /usr/lib/systemd/user/gpg-agent-ssh.socket.
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent.socket → /usr/lib/systemd/user/gpg-agent.socket.
Setting up libblockdev-swap2:amd64 (2.28-2) ...
Setting up libjq1:amd64 (1.6-2.1) ...
Setting up gpgsm (2.2.40-1.1) ...
Setting up cifs-utils (2:7.0-2) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/cifs-utils/idmapwb.so to provide /etc/cifs-utils/idmap-plugin (idmap-plugin) in auto mode
Setting up parted (3.5-3) ...
Setting up libblockdev-loop2:amd64 (2.28-2) ...
Setting up libnss3:amd64 (2:3.87.1-1) ...
Setting up libblockdev2:amd64 (2.28-2) ...
Setting up libmbim-proxy (1.28.2-1) ...
Setting up libblockdev-part2:amd64 (2.28-2) ...
Setting up systemd-journal-remote (252.19-1~deb12u1) ...
Creating group 'systemd-journal-remote' with GID 998.
Creating user 'systemd-journal-remote' (systemd Journal Remote) with UID 998 and GID 998.
Setting up libgpgme11:amd64 (1.18.0-3+b1) ...
Setting up libnl-route-3-200:amd64 (3.7.0-0.2+b1) ...
Setting up nfs-common (1:2.6.2-4) ...

Creating config file /etc/idmapd.conf with new version

Creating config file /etc/nfs.conf with new version
Adding system user `statd' (UID 107) ...
Adding new user `statd' (UID 107) with group `nogroup' ...
Not creating home directory `/var/lib/nfs'.
Created symlink /etc/systemd/system/multi-user.target.wants/nfs-client.target → /lib/systemd/system/nfs-client.target.
Created symlink /etc/systemd/system/remote-fs.target.wants/nfs-client.target → /lib/systemd/system/nfs-client.target.
auth-rpcgss-module.service is a disabled or a static unit, not starting it.
nfs-idmapd.service is a disabled or a static unit, not starting it.
nfs-utils.service is a disabled or a static unit, not starting it.
proc-fs-nfsd.mount is a disabled or a static unit, not starting it.
rpc-gssd.service is a disabled or a static unit, not starting it.
rpc-statd-notify.service is a disabled or a static unit, not starting it.
rpc-statd.service is a disabled or a static unit, not starting it.
rpc-svcgssd.service is a disabled or a static unit, not starting it.
rpc_pipefs.target is a disabled or a static unit, not starting it.
var-lib-nfs-rpc_pipefs.mount is a disabled or a static unit, not starting it.
Setting up dirmngr (2.2.40-1.1) ...
Created symlink /etc/systemd/user/sockets.target.wants/dirmngr.socket → /usr/lib/systemd/user/dirmngr.socket.
Setting up libblockdev-fs2:amd64 (2.28-2) ...
Setting up gpg-wks-server (2.2.40-1.1) ...
Setting up libnetfilter-conntrack3:amd64 (1.0.9-3) ...
Setting up xml-core (0.18+nmu1) ...
Setting up jq (1.6-2.1) ...
Setting up libnl-genl-3-200:amd64 (3.7.0-0.2+b1) ...
Setting up libpolkit-agent-1-0:amd64 (122-3) ...
Setting up usb-modeswitch (2.6.1-3+b1) ...
Setting up libmbim-utils (1.28.2-1) ...
Setting up libnss-resolve:amd64 (252.19-1~deb12u1) ...
Setting up udisks2 (2.9.4-4) ...
Created symlink /etc/systemd/system/graphical.target.wants/udisks2.service → /lib/systemd/system/udisks2.service.
Setting up gpg-wks-client (2.2.40-1.1) ...
Setting up libqmi-glib5:amd64 (1.32.2-1) ...
Setting up dnsmasq-base (2.89-1) ...
Setting up wpasupplicant (2:2.10-12) ...
Created symlink /etc/systemd/system/dbus-fi.w1.wpa_supplicant1.service → /lib/systemd/system/wpa_supplicant.service.
Created symlink /etc/systemd/system/multi-user.target.wants/wpa_supplicant.service → /lib/systemd/system/wpa_supplicant.service.
Setting up gnupg (2.2.40-1.1) ...
Setting up libvolume-key1:amd64 (0.3.12-5+b1) ...
Setting up libblockdev-crypto2:amd64 (2.28-2) ...
Setting up libqmi-proxy (1.32.2-1) ...
Setting up libqmi-utils (1.32.2-1) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-17-amd64
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for dbus (1.14.10-1~deb12u1) ...
Processing triggers for sgml-base (1.31) ...
Setting up polkitd (122-3) ...
Creating group 'polkitd' with GID 997.
Creating user 'polkitd' (polkit) with UID 997 and GID 997.
Setting up network-manager (1.42.4-1) ...

The following network interfaces were found in /etc/network/interfaces
which means they are currently configured by ifupdown:
- enp0s3
If you want to manage those interfaces with NetworkManager instead
remove their configuration from /etc/network/interfaces.

Created symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service → /lib/systemd/system/NetworkManager-dispatcher.service.
Created symlink /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service → /lib/systemd/system/NetworkManager-wait-online.ser
vice.
Created symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service → /lib/systemd/system/NetworkManager.service.
Setting up modemmanager (1.20.4-1) ...
Created symlink /etc/systemd/system/dbus-org.freedesktop.ModemManager1.service → /lib/systemd/system/ModemManager.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ModemManager.service → /lib/systemd/system/ModemManager.service.
Processing triggers for dbus (1.14.10-1~deb12u1) ...
root@debian:~#
root@debian:~#
root@debian:~#
root@debian:~# apt list systemd network-manager udisks2 apparmor docker-ce
Listing... Done
apparmor/stable,now 3.0.8-3 amd64 [installed]
docker-ce/bookworm,now 5:25.0.2-1~debian.12~bookworm amd64 [installed]
network-manager/stable,now 1.42.4-1 amd64 [installed]
systemd/stable,now 252.19-1~deb12u1 amd64 [installed]
udisks2/stable,now 2.9.4-4 amd64 [installed]

Checking /etc/systemd/resolv.conf

root@debian:~# cat /etc/systemd/resolved.conf 
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the resolved.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/resolved.conf' to display the full config.
#
# See resolved.conf(5) for details.

[Resolve]
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
# Google:     8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google
# Quad9:      9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
#DNS=
#FallbackDNS=
#Domains=
#DNSSEC=no
#DNSOverTLS=no
#MulticastDNS=yes
#LLMNR=yes
#Cache=yes
#CacheFromLocalhost=no
#DNSStubListener=yes
#DNSStubListenerExtra=
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no

Checking name resolution...

root@debian:~# nslookup github.com
Server:		127.0.0.53
Address:	127.0.0.53#53

** server can't find github.com: SERVFAIL

From now I can't do anything...so...I fix the /etc/systemd/resolved.conf file...

root@debian:~# nano /etc/systemd/resolved.conf
root@debian:~# 
root@debian:~# cat /etc/systemd/resolved.conf 
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the resolved.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/resolved.conf' to display the full config.
#
# See resolved.conf(5) for details.

[Resolve]
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
# Google:     8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google
# Quad9:      9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
DNS=1.1.1.1
#FallbackDNS=
#Domains=
#DNSSEC=no
#DNSOverTLS=no
#MulticastDNS=yes
#LLMNR=yes
#Cache=yes
#CacheFromLocalhost=no
#DNSStubListener=yes
#DNSStubListenerExtra=
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no

Now name resolution is ok

root@debian:~# systemctl restart systemd-resolved
root@debian:~# 
root@debian:~# nslookup github.com
Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	github.com
Address: 140.82.121.3

Installing os-agent

root@debian:~# wget https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_x86_64.deb
--2024-02-02 13:18:47--  https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_x86_64.deb
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/346652840/bcfec6aa-0e0a-4595-97ce-54c5457bc275?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240202%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240202T121848Z&X-Amz-Expires=300&X-Amz-Signature=f45ef175cb944f5410b8868d7fe6006a3415473d1a8dd44d2da0f7c25dbe4b75&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=346652840&response-content-disposition=attachment%3B%20filename%3Dos-agent_1.6.0_linux_x86_64.deb&response-content-type=application%2Foctet-stream [following]
--2024-02-02 13:18:48--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/346652840/bcfec6aa-0e0a-4595-97ce-54c5457bc275?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240202%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240202T121848Z&X-Amz-Expires=300&X-Amz-Signature=f45ef175cb944f5410b8868d7fe6006a3415473d1a8dd44d2da0f7c25dbe4b75&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=346652840&response-content-disposition=attachment%3B%20filename%3Dos-agent_1.6.0_linux_x86_64.deb&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3165376 (3.0M) [application/octet-stream]
Saving to: ‘os-agent_1.6.0_linux_x86_64.deb’

os-agent_1.6.0_linux_x86_64.deb                     100%[=================================================================================================================>]   3.02M  18.7MB/s    in 0.2s    

2024-02-02 13:18:48 (18.7 MB/s) - ‘os-agent_1.6.0_linux_x86_64.deb’ saved [3165376/3165376]

root@debian:~#
root@debian:~#
root@debian:~# dpkg -i os-agent_1.6.0_linux_x86_64.deb 
Selecting previously unselected package os-agent.
(Reading database ... 40814 files and directories currently installed.)
Preparing to unpack os-agent_1.6.0_linux_x86_64.deb ...
Unpacking os-agent (1.6.0) ...
Setting up os-agent (1.6.0) ...
Created symlink /etc/systemd/system/multi-user.target.wants/haos-agent.service → /lib/systemd/system/haos-agent.service.
Processing triggers for dbus (1.14.10-1~deb12u1) ...

Installing HA Supervised

root@debian:~# wget -O homeassistant-supervised.deb https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
root@debian:~#
root@debian:~#
root@debian:~# apt install ./homeassistant-supervised.deb
--2024-02-02 13:19:59--  https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/home-assistant/supervised-installer/releases/download/1.6.0/homeassistant-supervised.deb [following]
--2024-02-02 13:19:59--  https://github.com/home-assistant/supervised-installer/releases/download/1.6.0/homeassistant-supervised.deb
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/183216119/e84dc3a8-5deb-46e7-a46d-0e64f210e01d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240202%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240202T122000Z&X-Amz-Expires=300&X-Amz-Signature=c5dfabbf242a840782e118133f9b3ff32803cc0d0662e3d31f473fd5a723b18b&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=183216119&response-content-disposition=attachment%3B%20filename%3Dhomeassistant-supervised.deb&response-content-type=application%2Foctet-stream [following]
--2024-02-02 13:20:00--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/183216119/e84dc3a8-5deb-46e7-a46d-0e64f210e01d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240202%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240202T122000Z&X-Amz-Expires=300&X-Amz-Signature=c5dfabbf242a840782e118133f9b3ff32803cc0d0662e3d31f473fd5a723b18b&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=183216119&response-content-disposition=attachment%3B%20filename%3Dhomeassistant-supervised.deb&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7432 (7.3K) [application/octet-stream]
Saving to: ‘homeassistant-supervised.deb’

homeassistant-supervised.deb                        100%[=================================================================================================================>]   7.26K  --.-KB/s    in 0s      

2024-02-02 13:20:00 (18.1 MB/s) - ‘homeassistant-supervised.deb’ saved [7432/7432]

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,432 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /root/homeassistant-supervised.deb homeassistant-supervised all 1.6.0 [7,432 B]
Preconfiguring packages ...
Selecting previously unselected package homeassistant-supervised.
(Reading database ... 40817 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.6.0) ...
Setting up homeassistant-supervised (1.6.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: Temporary failure in name resolution
[info] Waiting for checkonline.home-assistant.io - network interface might be down...
ping: checkonline.home-assistant.io: Temporary failure in name resolution
[info] Waiting for checkonline.home-assistant.io - network interface might be down...
ping: checkonline.home-assistant.io: Temporary failure in name resolution
[info] Waiting for checkonline.home-assistant.io - network interface might be down...
ping: checkonline.home-assistant.io: Temporary failure in name resolution
[info] Waiting for checkonline.home-assistant.io - network interface might be down...
ping: checkonline.home-assistant.io: Temporary failure in name resolution
[info] Waiting for checkonline.home-assistant.io - network interface might be down...
ping: checkonline.home-assistant.io: Temporary failure in name resolution
[info] Waiting for checkonline.home-assistant.io - network interface might be down...
ping: checkonline.home-assistant.io: Temporary failure in name resolution
[info] Waiting for checkonline.home-assistant.io - network interface might be down...
ping: checkonline.home-assistant.io: Temporary failure in name resolution
[info] Waiting for checkonline.home-assistant.io - network interface might be down...
ping: checkonline.home-assistant.io: Temporary failure in name resolution
[info] Waiting for checkonline.home-assistant.io - network interface might

So I stop the installation.
Checking /etc/systemd/resolved.conf file is changed again...

root@debian:~# cat /etc/systemd/resolved.conf
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details

[Resolve]
#DNS=
#FallbackDNS=1.1.1.1 8.8.8.8 1.0.0.1 8.8.4.4 2606:4700:4700::1111 2001:4860:4860::8888 2606:4700:4700::1001 2001:4860:4860::8844
#Domains=
DNSSEC=no
DNSOverTLS=no
#MulticastDNS=yes
#LLMNR=yes
#Cache=yes
DNSStubListener=no
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no

and name resolution doesn't work again...

root@debian:~# nslookup github.com
;; communications error to ::1#53: connection refused
;; communications error to ::1#53: connection refused
;; communications error to ::1#53: connection refused
;; communications error to 127.0.0.1#53: connection refused
;; no servers could be reached

So...i changed "again" /etc/systemd/resolved.conf uncommenting FallbackDNS

[Resolve]
#DNS=
FallbackDNS=1.1.1.1 8.8.8.8 1.0.0.1 8.8.4.4 2606:4700:4700::1111 2001:4860:4860::8888 2606:4700:4700::1001 2001:4860:4860::8844
#Domains=
DNSSEC=no
DNSOverTLS=no
#MulticastDNS=yes
#LLMNR=yes
#Cache=yes
DNSStubListener=no
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no

now name resolution works again...

root@debian:~# vi /etc/systemd/resolved.conf
root@debian:~# nslookup github.com
Server:		1.1.1.1
Address:	1.1.1.1#53

Non-authoritative answer:
Name:	github.com
Address: 140.82.121.3

and now installation works fine...

root@debian:~# apt install ./homeassistant-supervised.deb
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
root@debian:~# dpkg --configure -a
Setting up homeassistant-supervised (1.6.0) ...
[info] Reload systemd
[info] Restarting NetworkManager
[info] Enable systemd-resolved
[info] Restarting systemd-resolved
[info] Restarting docker service
PING checkonline.home-assistant.io (104.26.5.238) 56(84) bytes of data.
64 bytes from 104.26.5.238 (104.26.5.238): icmp_seq=1 ttl=54 time=15.2 ms

--- checkonline.home-assistant.io ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 15.182/15.182/15.182/0.000 ms
[info] Install supervisor startup scripts
[info] Install AppArmor scripts
[info] Start Home Assistant Supervised
[info] Installing the 'ha' cli
[info] Switching to cgroup v1
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.1.0-17-amd64
Found initrd image: /boot/initrd.img-6.1.0-17-amd64
Found linux image: /boot/vmlinuz-6.1.0-10-amd64
Found initrd image: /boot/initrd.img-6.1.0-10-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
[info] Within a few minutes you will be able to reach Home Assistant at:
[info] http://homeassistant.local:8123 or using the IP address of your
[info] machine: http://192.168.1.58:8123
[warn] A reboot is required to apply changes to grub.

@agners
Copy link
Member

agners commented Feb 2, 2024

Does your network provide a DNS server via DHCP? If not, then the fact that you have to set a DNS server manually is expected. 🤷‍♂️

systemd-resolved knows two level of fallback DNS server: Built-in fallback DNS, and configured fallback DNS. On Home Assistant OS, we have built-in fallback DNS servers. It seems that systemd-resolved as provided by Debian has no built-in fallback enabled. That is why you have to configure it in order to take effect.

@snakuzzo
Copy link

snakuzzo commented Feb 2, 2024

Ok, but... my network provides DNS via DHCP.
I think this problem is just on Debian.

With 1.5.0 version there was the same problem, but after systemd-resolved and prerequisites packages, after editing resolved.conf with a valid dns server, everything worked fine. (#304)

Now...with 1.6.0 version the problem Is still present after prerequisites packages, but during supervised installation the resolved.conf file Is modified and manually added DNS in resolved.conf are nor present anymore.

@agners
Copy link
Member

agners commented Feb 2, 2024

Ok, but... my network provides DNS via DHCP.
I think this problem is just on Debian.

So this is reproducible with a vanilla 12.4 and just installing systemd-resolved?

Ok, but so then the question becomes, why does Debian's systemd-resolved does not pick up that DHCP provided DNS? 🤔

@snakuzzo
Copy link

snakuzzo commented Feb 3, 2024

Just another try...

clean installation...

deb@debian:~$ cat /etc/debian_version 
12.4

This is my /etc/resolv.conf ... there are name servers given from DHCP server...

deb@debian:~$ cat /etc/resolv.conf 
domain homenet.telecomitalia.it
search homenet.telecomitalia.it
nameserver 1.1.1.2
nameserver 1.0.0.2

So...I install systemd-resolved

deb@debian:~$ sudo apt install systemd-resolved 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libnss-myhostname libnss-resolve
Suggested packages:
  polkitd | policykit-1
The following NEW packages will be installed:
  libnss-myhostname libnss-resolve systemd-resolved
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 485 kB of archives.
After this operation, 1,237 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.debian.org/debian bookworm/main amd64 libnss-myhostname amd64 252.19-1~deb12u1 [83.8 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 systemd-resolved amd64 252.19-1~deb12u1 [304 kB]
Get:3 http://deb.debian.org/debian bookworm/main amd64 libnss-resolve amd64 252.19-1~deb12u1 [97.2 kB]
Fetched 485 kB in 0s (2,089 kB/s)        
Selecting previously unselected package libnss-myhostname:amd64.
(Reading database ... 39262 files and directories currently installed.)
Preparing to unpack .../libnss-myhostname_252.19-1~deb12u1_amd64.deb ...
Unpacking libnss-myhostname:amd64 (252.19-1~deb12u1) ...
Selecting previously unselected package systemd-resolved.
Preparing to unpack .../systemd-resolved_252.19-1~deb12u1_amd64.deb ...
Unpacking systemd-resolved (252.19-1~deb12u1) ...
Selecting previously unselected package libnss-resolve:amd64.
Preparing to unpack .../libnss-resolve_252.19-1~deb12u1_amd64.deb ...
Unpacking libnss-resolve:amd64 (252.19-1~deb12u1) ...
Setting up libnss-myhostname:amd64 (252.19-1~deb12u1) ...
Setting up systemd-resolved (252.19-1~deb12u1) ...
Converting /etc/resolv.conf to a symlink to /run/systemd/resolve/stub-resolv.conf...
Created symlink /etc/systemd/system/dbus-org.freedesktop.resolve1.service → /lib/systemd/system/systemd-resolved.service.
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-resolved.service → /lib/systemd/system/systemd-resolved.service.
Setting up libnss-resolve:amd64 (252.19-1~deb12u1) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for dbus (1.14.10-1~deb12u1) ...
Processing triggers for libc-bin (2.36-9+deb12u4) ...

and now...these are /etc/resolv.conf and /etc/systemd/resolved.conf...

deb@debian:~$ cat /etc/resolv.conf 
# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0 trust-ad
search .
deb@debian:~$ cat /etc/systemd/resolved.conf 
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the resolved.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/resolved.conf' to display the full config.
#
# See resolved.conf(5) for details.

[Resolve]
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
# Google:     8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google
# Quad9:      9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
#DNS=
#FallbackDNS=
#Domains=
#DNSSEC=no
#DNSOverTLS=no
#MulticastDNS=yes
#LLMNR=yes
#Cache=yes
#CacheFromLocalhost=no
#DNSStubListener=yes
#DNSStubListenerExtra=
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no

@jhampson-dbre
Copy link

Create a file at /etc/systemd/resolve.conf.d/resolve.conf and with the contents:

[Resolve]
DNS=192.168.178.1
DNSStubListener=no

Or whatever set of options is appropriate for your system.
And systemctl restart systemd-resolved
This file will not be overwritten by the supervised installer.

@muzo178
Copy link

muzo178 commented Mar 13, 2024

I just went through the exact same thing on a fresh new Debian 12 install.

@ChristBKK
Copy link

Create a file at /etc/systemd/resolve.conf.d/resolve.conf and with the contents:

[Resolve]
DNS=192.168.178.1
DNSStubListener=no

Or whatever set of options is appropriate for your system. And systemctl restart systemd-resolved This file will not be overwritten by the supervised installer.

I really can't get this one to run and I am always stuck here [info] Waiting for checkonline.home-assistant.io - network interface might be down...

Is there any fix? Is there any guide that I can follow to get this install go through under Debian?

Maybe I use the wrong DNS IP?

Super confusing all

@ChristBKK
Copy link

I just went through the exact same thing on a fresh new Debian 12 install.

How did you fix the problem? I tried now everything in this thread but nothing seem to work

@mayonezo
Copy link

Can't find the source anymore, but this worked for me:

Edit /etc/systemd/resolved.conf

Uncomment the following lines and change DNS to your router/DNS-Server and DNSStubListener to no:

DNS=192.168.178.1 DNSStubListener=no

Then restart systemd-resolved:

sudo systemctl restart systemd-resolved

Did you try this?

@ChristBKK
Copy link

ChristBKK commented Apr 24, 2024

I had to disable the IPV6...

Okay I found a solution for anyone still struggling:

  1. Follow this guide https://community.home-assistant.io/t/installing-home-assistant-supervised-using-debian-12/200253
  2. Remove systemd-resolved and re install it again
  3. Double check the resolved config that it has the right nameserver (yours)
  4. This is what was missing , I had to turn off ipv6

sudo nano /etc/sysctl.conf

add this in the bottom

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.tun0.disable_ipv6 = 1

Reboot. And it installed finally..


Maybe this helps to pin point the problem for some users. This install is forcing the ipv6 ... no idea why. That's why it is so confusing... when I ping some website or install some package the DNS is resolved normally only with the install of Home Assistant Supervised it forces the ipv6 which doesn't work then and doesn't resolve.

@snakuzzo
Copy link

Disabling IPv6 Is not a solution

@ChristBKK
Copy link

ChristBKK commented Apr 25, 2024

Disabling IPv6 Is not a solution

only thing that worked for me so I guess my Router is the problem then. But weird that the installation forces ipv6 (not active on my router) and other installations don't? I don't say it's a solution but I read all comments here and in the Debian Setup Thread and nothing worked till I finally turned off ipv6 and it went through. Didn't need to change my DNS to 8.8.8.8 or anything.

How did I find this? I read through the whole Guide Thread in the Home Assistant server and found one comment where someone was complaining that the installation forces ipv6 ... wouldn't have found it otherwise.

@agners
Copy link
Member

agners commented Apr 25, 2024

@ChristBKK what router make/model do you have?

I am guessing your router announces an IPv6 DNS server, which ultimately is not reachable (for some reason). Instead of disabling IPv6, I'd check what DNS servers your system receives (check resolvectl). I assume there are DNS servers with IPv6 addresses. Try to ping them. If they are not reachable, it is some IPv6 routing issue. This would indicate an issue with your router/ISP (or the combination thereof).

@ChristBKK
Copy link

@ChristBKK what router make/model do you have?

I am guessing your router announces an IPv6 DNS server, which ultimately is not reachable (for some reason). Instead of disabling IPv6, I'd check what DNS servers your system receives (check resolvectl). I assume there are DNS servers with IPv6 addresses. Try to ping them. If they are not reachable, it is some IPv6 routing issue. This would indicate an issue with your router/ISP (or the combination thereof).

thanks for the explanation. Will check it's for sure my routers fault I agree.

Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jun 26, 2024
@mayonezo
Copy link

This issue has not been resolved, but there is a pull request. Until that has been merged I would like this issue to stay open in order for people to find the workarounds in the comments above.

@github-actions github-actions bot removed the stale label Jun 26, 2024
@lokomass
Copy link

Hi
Exaclty same problem for me,
After installing systemd-resolved, network is ko, and résolution dns not working anymore.
I have a dhcp server in my network that provide dns server for my debian server
What can I do for résolve ? Does any package update is going ?

@Red724
Copy link

Red724 commented Jun 30, 2024

try this

Today I had a similar issue with installation on fresh (12.4) Debian. Even while feeling desperate and depressed I had to reinstall the system. After many hours of experiments I managed to magically solve it by removing and reinstalling systemd-resolved package. After this dns resolving has been fixed.

i think it is better solution that hardcoding router ip in resolve.conf

@snakuzzo
Copy link

@lokomass, waiting for PR, this Is the clean workaroumd -> #339 (comment)

@lokomass
Copy link

Thanks for reply, when do you think this Will be published ?

@SNMetamorph
Copy link

@lokomass, waiting for PR, this Is the clean workaroumd -> #339 (comment)

@snakuzzo also, this workaround can be shrinked to just

[Resolve]
DNSStubListener=no

And for now we don't have any hardcoded addresses.

jhampson-dbre added a commit to jhampson-dbre/home_assistant that referenced this issue Jul 29, 2024
A new variable `supervised_install_resolve_conf_overrides` can be used to configure resolve.conf overrides if the supervisor's default configuration breaks DNS resolution.

ref: home-assistant/supervised-installer#339
jhampson-dbre added a commit to jhampson-dbre/home_assistant that referenced this issue Jul 29, 2024
A new variable `supervised_install_resolve_conf_overrides` can be used to configure resolve.conf overrides if the supervisor's default configuration breaks DNS resolution.

ref: home-assistant/supervised-installer#339
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 14, 2024
@snakuzzo
Copy link

Not solved with latest version

@github-actions github-actions bot removed the stale label Sep 15, 2024
@werehamster999
Copy link

werehamster999 commented Sep 30, 2024

Hi,

I've just run in to this myself. The issue isn't, per-se, systemd on it's own (although clobbering resolve.conf in the install probably isn't helping 😃 ) , there's a second side-effect coming from the network-manager (NM) install. NM dynamically creates resolve.conf itself (to provide a per-connection based system). When it's installed it doesn't handle global dns settings set in the resolve.conf very well. It only seems to honour settings made directly in the interface file(s). As a result, people using DHCP or defining nameservers directly on the interface are fine. Anyone using resolve.conf to configure DNS settings more globally will find they lose DNS unexpectedly during the restart of the NM service too.

I'm currently using an override file that presets global DNS setting for NM and it's working neatly (even to the extent of being able to install netmasq as an alternative to resolve). It's the same principle as the previous suggestion, just for NM instead.

/etc/NetworkManager/conf.d/99-local.conf

[global-dns-domain-*]
servers=1.1.1.1,1.0.0.1

I'm not sure how required NM is and I'm not entirely sure which of the resolve.conf settings are vital either, but NM has a rich array of settings. There's probably enough there to consider doing all the settings directly with it rather than modifying resolve. Maybe?

Regards,
Keith

Edit: Fix typos etc

@ikifar2012
Copy link
Member

I just ran into this issue recently I was getting an internet connection but no DNS and removing eth0 (or whatever interface you are using) from /etc/network/interfaces did the trick, it was added to the readme recently by @agners. Does that solve it for anyone else here?

@maxdwit
Copy link

maxdwit commented Dec 3, 2024

Still not solved. Happened when I use dhcp to get ip,dns server and search domain:

I added to: /etc/systemd/resolved.conf
Domains=mydomains.internal
and restarted the daemon:
systemctl daemon-reload && systemctl restart systemd-resolved
After that /etc/resolv.conf reflected
search mydomains.internal
and resolution of non FQDN Domains within my network worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests