Solution for "dpkg: unknown user / system group in statoverride file"
When I was deploying my Raspberry Pi for my new project, dpkg reported a unrecoverable fatal error while installing dependencies,
dpkg: unrecoverable fatal error, aborting: unknown system group 'ssl-cert' in statoverride file; the system group 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)
So I had a look at the file /var/lib/dpkg/statoverride
Since dpkg said that the system group ssl-cert
was already removed, and to recover I need to remove these entries with ssl-cert
.
Then it was time for sed
, let's remove the lines containing ssl-cert
sed -i '/ssl-cert/d' /var/lib/dpkg/statoverrideContinue reading Solution for "dpkg: unknown user / system group in statoverride file"