…in statoverride file
2013-01-29
I used apt-get
to remove the puppet packages, but I removed the puppet user by hand. Same happened for mediatomb.
After doing this, I kept seeing this error:
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: unrecoverable fatal error, aborting:
syntax error: unknown user 'puppet' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)
and also
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: unrecoverable fatal error, aborting:
syntax error: unknown user 'mediatomb' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)
Here’s how I fixed it after the tips in “HowTo: Ubuntu unknown user in statoverride”:
sudo sed -i '/puppet/d' /var/lib/dpkg/statoverride
and
sudo sed -i '/mediatomb/d' /var/lib/dpkg/statoverride
Backup to yor taste.