Statoverride Problem in Ubuntu

This morning I had one problem when I am trying to install postgresql-8.2 in my ubuntu box.

[email protected]:~$ sudo apt-get install postgresql-8.2
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  postgresql-client-8.2 postgresql-client-common postgresql-common
Suggested packages:
  oidentd ident-server postgresql-doc-8.2
The following NEW packages will be installed:
  postgresql-8.2 postgresql-client-8.2 postgresql-client-common
0 upgraded, 4 newly installed, 0 to remove and 895 not upgraded.
Need to get 1007kB/4379kB of archives.
After unpacking 17.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 gutsy/main postgresql-client-common 78 [41.9kB]
Get:2 gutsy-updates/main postgresql-client-8.2 8.2.6-0ubuntu0.7.10.1 [863kB]
Get:3 gutsy/main postgresql-common 78 [102kB]    
Fetched 1007kB in 1m49s (9209B/s)                                             
Preconfiguring packages ...
dpkg: syntax error: unknown group `root' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)

Every time I try to install, always shown up something like that. Problem in statoverride file. After googling, I find one solution. Stateoverride file was locate in /var/lib/dpkg/statoverride.

[email protected]:~$ more /var/lib/dpkg/statoverride
root Debian-exim 0640 /etc/exim4/passwd.client
hplip root 755 /var/run/hplip

To remove the file use dpkg-statoverride with remove option, but dont forget to backup the file. Use this command to remove the problem :

[email protected]:~$ sudo dpkg-statoverride --remove /var/run/hplip
[email protected]:~$ sudo dpkg-statoverride --remove /etc/exim4/passwd.client


Then I try to install again and it work. For me it fix the problem.


The content of this field is kept private and will not be shown publicly.
If you have a Gravatar account, used to display your avatar.
  • Lines and paragraphs break automatically.

More information about formatting options

This blog uses the CommentLuv Drupal plugin which will try and parse your sites feed and display a link to your last post, please be patient while it tries to find it for you.
Jawab pertanyaan ini untuk membedakan apakah anda pengunjung atau spam.
2 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.