Package: frr
Version: 10.2.1-1
Severity: normal

Dear maintainer,

the stateoverride added in postinst is not removed when the package is
removed/purged.

This can cause an error upon reinstallation if the user frr has been
removed after the package was purged.

a) install frr
b) purge frr
c) userdel -r frr; usergroup frrvty
d) install frr:
(...)
Get:10 http://deb.debian.org/debian sid/main amd64 frr-pythontools all
10.2.1-1 [39.9 kB]
Fetched 7,090 kB in 0s (33.6 MB/s)
dpkg: unrecoverable fatal error, aborting:
 unknown system user 'frr' 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
Error: Sub-process /usr/bin/dpkg returned an error code (2)

$ dpkg-statoverride --list
root messagebus 4754 /usr/lib/dbus-1.0/dbus-daemon-launch-helper
frr frr 700 /etc/frr
$ sudo grep frr /etc/passwd /etc/shadow /etc/group
$

Reply via email to