if [ "$1" = remove -o "$1" = purge ]; then
dpkg-divert --package systemd-shim --remove --rename --divert \ /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd \ /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service
fi
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/dbus-1/system.d/org.freedesktop.systemd-shim.conf 8-4 systemd-shim -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/dbus-1/system.d/org.freedesktop.systemd1.conf 6-2 systemd-shim -- "$@"
# End automatically added section
The error was:
Removing systemd-shim (9-1bzr4ubuntu1) ...
Removing 'diversion of /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd by systemd-shim'
dpkg-divert: error: rename involves overwriting '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service' with
different file '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd', not allowed
I have no idea what the dpkg-divert error means there, but I assume there's some interaction I'm not following with the divert...
# dpkg -L systemd-shim i386-linux- gnu i386-linux- gnu/systemd- shim i386-linux- gnu/systemd- shim-cgroup- release- agent systemd/ ntp-units. d systemd/ ntp-units. d/systemd- shim.list dbus-1/ system- services dbus-1/ system- services/ org.freedesktop .systemd1. service dbus-1/ system- services/ org.freedesktop .systemd1. service. systemd doc/systemd- shim doc/systemd- shim/copyright doc/systemd- shim/changelog. Debian. gz
/.
/usr
/usr/lib
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/systemd
/usr/lib/
/usr/lib/
/usr/share
/usr/share/dbus-1
/usr/share/
/usr/share/
package diverts others to: /usr/share/
/usr/share/doc
/usr/share/
/usr/share/
/usr/share/
# cat /var/lib/ dpkg/info/ systemd- shim.postrm
#!/bin/sh
set -e
if [ "$1" = remove -o "$1" = purge ]; then
/usr/ share/dbus- 1/system- services/ org.freedesktop .systemd1. service. systemd \
/usr/ share/dbus- 1/system- services/ org.freedesktop .systemd1. service
dpkg-divert --package systemd-shim --remove --rename --divert \
fi
# Automatically added by dh_installdeb t-helper rm_conffile /etc/dbus- 1/system. d/org.freedeskt op.systemd- shim.conf 8-4 systemd-shim -- "$@" t-helper rm_conffile /etc/dbus- 1/system. d/org.freedeskt op.systemd1. conf 6-2 systemd-shim -- "$@"
dpkg-maintscrip
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscrip
# End automatically added section
The error was:
Removing systemd-shim (9-1bzr4ubuntu1) ... dbus-1/ system- services/ org.freedesktop .systemd1. service to /usr/share/ dbus-1/ system- services/ org.freedesktop .systemd1. service. systemd by systemd-shim' dbus-1/ system- services/ org.freedesktop .systemd1. service' with dbus-1/ system- services/ org.freedesktop .systemd1. service. systemd' , not allowed
Removing 'diversion of /usr/share/
dpkg-divert: error: rename involves overwriting '/usr/share/
different file '/usr/share/
I have no idea what the dpkg-divert error means there, but I assume there's some interaction I'm not following with the divert...