deb packages can't be upgraded from older versions to new names (post 2.3.3)
Unpacking isc-kea-admin (2.4.0-isc20230630120747) over (1.8.2-isc0001520201206093433) ...
dpkg: error processing archive /var/cache/apt/archives/isc-kea-admin_2.4.0-isc20230630120747_amd64.deb (--unpack):
trying to overwrite '/usr/sbin/kea-shell', which is also in package isc-kea-ctrl-agent 1.8.2-isc0001520201206093433
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/isc-kea-admin_2.4.0-isc20230630120747_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
-
First issue:
kea-shell
was moved fromisc-kea-ctrl-agent
toisc-kea-admin
. Newisc-kea-admin
package do not setBreakes
statement correctly. -
Second issue: Services are getting masked after upgrade.
Workarounds:
Before kea upgrade, remove isc-kea-ctrl-agent
pkg
sudo apt update
sudo apt remove isc-kea-ctrl-agent
sudo apt dist-upgrade
sudo apt install isc-kea-ctrl-agent
Unmask services:
sudo systemctl unmask isc-kea-dhcp-ddns-server && \
sudo systemctl enable isc-kea-dhcp-ddns-server && \
sudo systemctl start isc-kea-dhcp-ddns-server && \
sudo systemctl status isc-kea-dhcp-ddns-server && \
sudo systemctl unmask isc-kea-dhcp4-server && \
sudo systemctl enable isc-kea-dhcp4-server && \
sudo systemctl start isc-kea-dhcp4-server && \
sudo systemctl status isc-kea-dhcp4-server && \
sudo systemctl unmask isc-kea-dhcp6-server && \
sudo systemctl enable isc-kea-dhcp6-server && \
sudo systemctl start isc-kea-dhcp6-server && \
sudo systemctl status isc-kea-dhcp6-server
Edited by Wlodzimierz Wencel