Analysis here appears related:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768620

Seems the interactions here are quite complex

To reproduce the problem, you can do on xenial:
(install old version)
# apt install avahi-daemon=0.6.32~rc+dfsg-1ubuntu2 
avahi-dnsconfd=0.6.32~rc+dfsg-1ubuntu2 avahi-utils=0.6.32~rc+dfsg-1ubuntu2

(in a second terminal, leaves this running)
while true; do avahi-browse -a; done

(back in the first terminal)
apt upgrade # will upgrade from the xenial version 1ubuntu2 to xenial-updates 
version 1ubuntu2.1


Looks like the --restart-after-upgrade change may be what we need except I 
can't see where that's actually used in the current Ubuntu or Debian package.  
Seems this shipped patch may have "fixed" the issue instead.  This patch is in 
bionic, but not in xenial where are are seeing this issue reported.

lathiat@optane:~/src/debian/avahi-0.7$ cat debian/patches/no-systemd-also.patch 
Description: Don't use 'Also=' in dnsconfd systemd unit
 'Also=avahi-daemon.socket' means that 'systemctl disable avahi-dnsconfd'
 will also disable avahi-daemon.socket, which is definitely not what we
 want, and it also causes debhelper to throw an error.  Just drop this entry
 from the configuration.
Author: Steve Langasek <steve.langa...@ubuntu.com>
Last-Modified: 2018-01-02 20:30:00 -0800
Bug-Debian: https://bugs.debian.org/878911

Index: avahi-0.7-3ubuntu1/avahi-dnsconfd/avahi-dnsconfd.service.in
===================================================================
--- avahi-0.7-3ubuntu1.orig/avahi-dnsconfd/avahi-dnsconfd.service.in
+++ avahi-0.7-3ubuntu1/avahi-dnsconfd/avahi-dnsconfd.service.in
@@ -26,4 +26,3 @@
 
 [Install]
 WantedBy=multi-user.target
-Also=avahi-daemon.socket



** Bug watch added: Debian Bug tracker #768620
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768620

** Bug watch added: Debian Bug tracker #878911
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878911

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1760128

Title:
  package avahi-dnsconfd 0.6.32~rc+dfsg-1ubuntu2 failed to
  install/upgrade: subprocess new pre-removal script returned error exit
  status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1760128/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to