kea packages on debian can't be installed after those were previously purged.
Problem is:
- install kea packages:
sudo apt-get install isc-kea* -y
- remove
sudo apt-get purge isc-kea* -y
- try to install it again:
sudo apt-get install isc-kea* -y
Error:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'isc-kea-premium-radius' for glob 'isc-kea*'
Note, selecting 'isc-kea-dev-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-hooks-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-forensic-log' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-ddns-tuning' for glob 'isc-kea*'
Note, selecting 'isc-kea-common-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-lease-query' for glob 'isc-kea*'
Note, selecting 'isc-kea-ctrl-agent-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-rbac' for glob 'isc-kea*'
Note, selecting 'isc-kea-hooks' for glob 'isc-kea*'
Note, selecting 'isc-kea' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-gss-tsig-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-perfdhcp' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-radius-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-flex-id' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-cb-cmds-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-host-cache' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-class-cmds' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-gss-tsig' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-limits' for glob 'isc-kea*'
Note, selecting 'isc-kea-dhcp6-server' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-forensic-log-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-perfdhcp-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-host-cmds' for glob 'isc-kea*'
Note, selecting 'isc-kea-dhcp6-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-ctrl-agent' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-ping-check-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-ping-check' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-host-cache-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-cb-cmds' for glob 'isc-kea*'
Note, selecting 'isc-kea-dhcp-ddns-server' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-class-cmds-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-subnet-cmds-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-dhcp-ddns' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-lease-query-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-host-cmds-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-dhcp4' for glob 'isc-kea*'
Note, selecting 'isc-kea-dhcp6' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-rbac-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-dev' for glob 'isc-kea*'
Note, selecting 'isc-kea-doc' for glob 'isc-kea*'
Note, selecting 'isc-kea-common' for glob 'isc-kea*'
Note, selecting 'isc-kea-dhcp-ddns-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-ddns-tuning-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-limits-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-dhcp4-dbgsym' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-subnet-cmds' for glob 'isc-kea*'
Note, selecting 'isc-kea-admin' for glob 'isc-kea*'
Note, selecting 'isc-kea-dhcp4-server' for glob 'isc-kea*'
Note, selecting 'isc-kea-premium-flex-id-dbgsym' for glob 'isc-kea*'
The following packages were automatically installed and are no longer required:
libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python2 python2-minimal python2.7 python2.7-minimal python3-dbus python3-distro-info
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
isc-kea isc-kea-admin isc-kea-common isc-kea-common-dbgsym isc-kea-ctrl-agent isc-kea-ctrl-agent-dbgsym isc-kea-dev isc-kea-dev-dbgsym isc-kea-dhcp-ddns
isc-kea-dhcp-ddns-dbgsym isc-kea-dhcp-ddns-server isc-kea-dhcp4 isc-kea-dhcp4-dbgsym isc-kea-dhcp4-server isc-kea-dhcp6 isc-kea-dhcp6-dbgsym isc-kea-dhcp6-server isc-kea-doc
isc-kea-hooks isc-kea-hooks-dbgsym isc-kea-perfdhcp isc-kea-perfdhcp-dbgsym isc-kea-premium-cb-cmds isc-kea-premium-cb-cmds-dbgsym isc-kea-premium-class-cmds
isc-kea-premium-class-cmds-dbgsym isc-kea-premium-ddns-tuning isc-kea-premium-ddns-tuning-dbgsym isc-kea-premium-flex-id isc-kea-premium-flex-id-dbgsym
isc-kea-premium-forensic-log isc-kea-premium-forensic-log-dbgsym isc-kea-premium-gss-tsig isc-kea-premium-gss-tsig-dbgsym isc-kea-premium-host-cache
isc-kea-premium-host-cache-dbgsym isc-kea-premium-host-cmds isc-kea-premium-host-cmds-dbgsym isc-kea-premium-lease-query isc-kea-premium-lease-query-dbgsym
isc-kea-premium-limits isc-kea-premium-limits-dbgsym isc-kea-premium-ping-check isc-kea-premium-ping-check-dbgsym isc-kea-premium-radius isc-kea-premium-radius-dbgsym
isc-kea-premium-rbac isc-kea-premium-rbac-dbgsym isc-kea-premium-subnet-cmds isc-kea-premium-subnet-cmds-dbgsym
0 upgraded, 50 newly installed, 0 to remove and 90 not upgraded.
Need to get 0 B/192 MB of archives.
After this operation, 238 MB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").
Extracting templates from packages: 100%
dpkg: unrecoverable fatal error, aborting:
unknown system user '_kea' in statoverride file; the system user got removed
before the override, which is most probably a packaging bug, to recover you
can remove the override manually with dpkg-statoverride
E: Sub-process /usr/bin/dpkg returned an error code (2)
-
fix deb packages -
check rpms for the same scenario -
update tests to cover this issue
Edited by Andrei Pavel