Univention Bugzilla – Bug 55032
preup script should check for /etc/init.d/isc-dhcp-server.debian.dpkg-dist
Last modified: 2022-08-26 18:01:11 CEST
On old systems the file could exist and will break the change to systemd. The dhcp will not start after update. Simply remove the file should work, at least the preup script should mention that.
Please provide an exact error message, e.g. - systemctl status - journalctl - /var/log/apt/term.log - ... as /etc/init.d/isc-dhcp-server.debian.dpkg-dist is caused by our `dpkg-divert` but should not cause any error.
The upgrade to UCS 5 relies on /etc/init.d/isc-dhcp-server being reverted to its vendor-supplied state for the DHCP service to work after the upgrade. In our infrastructure, this works on systems where "/etc/init.d/isc-dhcp-server.debian" exists before upgrading, but not on systems where dpkg only left an "/etc/init.d/isc-dhcp-server.debian.dpkg-dist", leaving us with a non-functional DHCP service because the init script is still the "empty" UCS 4 one. I see that the postinst script for univention-dhcp has a dedicated function "undo_divert" to deal with such situations, but for some reason it doesn't work for us. Manually renaming isc-dhcp-server.debian.dpkg-dist to isc-dhcp-server.debian makes sure that DHCP still works after upgrading.