Comment 3 for bug 2047975

Revision history for this message
Nick Rosbrook (enr0n) wrote (last edit ):

I got some information from a user on a more recent duplicate (bug 2063533). The problem seems to be that some users, when disabling the stub-resolver, also create a symlink /etc/resolv.conf -> /run/systemd/resolve/resolv.conf. This is not actually necessary because systemd-resolved will make stub-resolv.conf a symlink to resolv.conf when DNSStubListener=no.

Hence, the command

cp "${DPKG_ROOT}/etc/resolv.conf" "${DPKG_ROOT}/run/systemd/resolve/stub-resolv.conf"

in systemd-resolved.postinst fails because the source and destination are *both* symlinks to /run/systemd/resolve/resolv.conf.