I had something smilar:# apt-get install ddclient
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libio-socket-ssl-perl libnet-libidn-perl libnet-ssleay-perl
The following NEW packages will be installed:
ddclient libio-socket-ssl-perl libnet-libidn-perl libnet-ssleay-perl
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/343kB of archives.
After this operation, 1528kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
dpkg: unrecoverable fatal error, aborting:
syntax error: unknown group `mlocate' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)
I have fixed this problem.
The problem was related to the contents of /etc/group.
I had been running my server a very long time and needed to rebuild it. I wanted to keep the groups from my old server installation on the new one as I have some external drives attached that are ext2/3 that have permissions stored that are in groups.
I orinally saved /etc/group as /etc/group.default and then copied the group file from my old installation.
After reaching this problem and reading this forum post I noticed the error here states "unknown group `root`, where mine said `mlocate`. When did this:# cat /etc/group.default |grep mloc
mlocate : x : 106 :
(I had to put spaces in above to stop text being converted to a smiley)
it was clear that I needed to put this 'mlocate' group back onto the system.
To fix it I did:
- `cat /etc/group`
- selected the groups I wanted to preserve for the new installation and copied those lins to the clipboard (user created groups are usually >1000
- `cp /etc/group.default /etc/group`
- `nano /etc/group`
- pasted the lines into the bottom of the file and saved the new /etc/group
- ran apt-get again and it's working again
Hopefully that helps someone.
-studotwho.