Added "set -x" to the prerm script at /var/lib/dpkg/info/avahi- dnsconfd.prerm for more verbose console output and re-ran apt update && apt upgrade and it looks like it's failing here:
deb-systemd-invoke stop avahi-daemon.socket ``` The following packages will be upgraded: avahi-dnsconfd 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/14.1 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] (Reading database ... 459430 files and directories currently installed.) Preparing to unpack .../avahi-dnsconfd_0.6.32~rc+dfsg-1ubuntu2.1_amd64.deb ... + dpkg-maintscript-helper rm_conffile /etc/default/avahi-dnsconfd 0.6.26-1~ avahi-dnsconfd -- upgrade 0.6.32~rc+dfsg-1ubuntu2.1 + [ -d /run/systemd/system ] + deb-systemd-invoke stop avahi-daemon.socket Job for avahi-daemon.socket canceled. dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... Job for avahi-daemon.socket canceled. dpkg: error processing archive /var/cache/apt/archives/avahi-dnsconfd_0.6.32~rc+dfsg-1ubuntu2.1_amd64.deb (--unpack): subprocess new pre-removal script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/avahi-dnsconfd_0.6.32~rc+dfsg-1ubuntu2.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) ``` When run manually this command fails as well: ``` $ deb-systemd-invoke stop avahi-daemon.socket Job for avahi-daemon.socket canceled. $ deb-systemd-invoke status avahi-daemon.socket ● avahi-daemon.socket - Avahi mDNS/DNS-SD Stack Activation Socket Loaded: loaded (/lib/systemd/system/avahi-daemon.socket; enabled; vendor preset: enabled) Active: active (running) since Thu 2018-04-05 01:15:39 EDT; 22h ago Listen: /var/run/avahi-daemon/socket (Stream) Apr 05 01:15:39 MYCOMPUTER systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket. Apr 05 22:50:26 MYCOMPUTER systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket. Apr 05 22:50:26 MYCOMPUTER systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket. Apr 05 22:50:26 MYCOMPUTER systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket. Apr 05 23:20:31 MYCOMPUTER systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket. Apr 05 23:20:31 MYCOMPUTER systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket. Apr 05 23:20:31 MYCOMPUTER systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket. Apr 05 23:21:29 MYCOMPUTER systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket. ``` -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1563945 Title: package avahi-dnsconfd 0.6.32~rc+dfsg-1ubuntu2 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1563945/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs