Ran into this problem today on 16.04. Here's a brute-force hack that got
me past the problem. Attempt at your own risk:

# First, try to update:
sudo apt-get upgrade
# STOP if you don't see the following messages:
# Job for avahi-daemon.socket canceled.
# dpkg: warning: subprocess old pre-removal script returned error exit status 1

# Here's the hack:
sudo sed -i.backup 's:deb-systemd-invoke stop avahi-daemon.socket 
>/dev/null:echo:' /var/lib/dpkg/info/avahi-dnsconfd.prerm

# Try to update again
sudo apt-get upgrade
# avahi-daemon should now install without the pre-removal script error message. 
If it doesn't, you should restore the backup:
sudo mv /var/lib/dpkg/info/avahi-dnsconfd.prerm.backup 
/var/lib/dpkg/info/avahi-dnsconfd.prerm

HTH

-- 
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to