The issue occurred for me when the latest set of updates were applied. Just trying to remove avahi-dnsconfd give an error about the pre-removal script failing. Here is the output from 'apt remove avahi-dnsconfd'
# apt remove avahi-dnsconfd Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED avahi-dnsconfd 0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade. After this operation, 92.2 kB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 602708 files and directories currently installed.) Removing avahi-dnsconfd (0.6.32-1ubuntu1) ... Job for avahi-daemon.socket canceled. dpkg: error processing package avahi-dnsconfd (--remove): subprocess installed pre-removal script returned error exit status 1 Errors were encountered while processing: avahi-dnsconfd E: Sub-process /usr/bin/dpkg returned an error code (1) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1761682 Title: package avahi-dnsconfd 0.6.32-1ubuntu1 failed to install/upgrade: sub- process pre-removal script returned error-code 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1761682/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs