Error ‘unknown group ‘freerad’ in statoverride file’

Dpkg Error after removing Freeradius
I came across this little error with Dpkg recently after installing and then removing Freeradius on my Squeeze box. It appears that even after removing (and purging) Freeradius, the user and group entries remain in the statoverride file. The statoverride file is located in /var/lib/dpkg/ and contains various entires depending on what you have installed.

Dpkg Statoverride details:
http://man-wiki.net/index.php/8:dpkg-statoverride

I had a list of other entries for the user Freeradius and also Freeradius group entries as well.

root freerad 640 /etc/freeradius/experimental.conf
root mlocate 2755 /usr/bin/mlocate
freerad freerad 2751 /etc/freeradius/certs
freerad freerad 755 /var/run/freeradius
freerad freerad 2751 /etc/freeradius
root freerad 640 /etc/freeradius/preproxy_users
root incron 2755 /usr/bin/incrontab
root freerad 640 /etc/freeradius/policy.conf
root freerad 640 /etc/freeradius/huntgroups
root freerad 640 /etc/freeradius/attrs
root incron 1731 /var/spool/incron
root freerad 640 /etc/freeradius/proxy.conf
root incron 640 /etc/incron.deny
root freerad 640 /etc/freeradius/ldap.attrmap
root freerad 640 /etc/freeradius/acct_users
root freerad 640 /etc/freeradius/eap.conf
root freerad 640 /etc/freeradius/attrs.pre-proxy
root incron 640 /etc/incron.allow
freerad freerad 2751 /etc/freeradius/sites-available
root freerad 640 /etc/freeradius/hints
root freerad 640 /etc/freeradius/radiusd.conf
root freerad 640 /etc/freeradius/clients.conf
root freerad 640 /etc/freeradius/attrs.access_challenge
root freerad 644 /etc/freeradius/dictionary
root ssl-cert 710 /etc/ssl/private
root freerad 640 /etc/freeradius/policy.txt
root freerad 640 /etc/freeradius/sql.conf
root Debian-exim 640 /etc/exim4/passwd.client
freerad freerad 750 /var/log/freeradius
root freerad 640 /etc/freeradius/attrs.accounting_response
root crontab 2755 /usr/bin/crontab
root freerad 640 /etc/freeradius/attrs.access_reject

Clean up
I just opened it with Vim and used the “d+d” keystroke to delete each entire line. Did an apt-get update and hey presto! All solved. Now it’s back as it was before Freeradius was installed:

root mlocate 2755 /usr/bin/mlocate
root incron 2755 /usr/bin/incrontab
root incron 1731 /var/spool/incron
root incron 640 /etc/incron.deny
root incron 640 /etc/incron.allow
root ssl-cert 710 /etc/ssl/private
root Debian-exim 640 /etc/exim4/passwd.client
root crontab 2755 /usr/bin/crontab

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s