LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-28-2011, 11:18 AM   #1
cyco
LQ Newbie
 
Registered: Feb 2011
Location: Moorestown, NJ
Distribution: Ubuntu, Linux Mint
Posts: 14

Rep: Reputation: 0
Trouble updating ubuntu server 10.04 dpkg fails


I attemted to run updates on my server today and after running,

Code:
sudo apt-get upgrade
I got this error:

Code:
dpkg: unrecoverable fatal error, aborting:
 syntax error: unknown user 'backuppc' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)
I deleted the user backup pc a while ago but apparently not all the way. How can I find this file "statoverride", and how can I prevent this from happening again?
 
Old 02-28-2011, 04:07 PM   #2
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 50
The file is located at:
/var/lib/dpkg/statoverride

You can update it by running:
dpkg-statoverride --remove /etc/exim4/passwd.client

Hope that helps.
 
1 members found this post helpful.
Old 02-28-2011, 04:19 PM   #3
cyco
LQ Newbie
 
Registered: Feb 2011
Location: Moorestown, NJ
Distribution: Ubuntu, Linux Mint
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you.
Quote:
You can update it by running:
dpkg-statoverride --remove /etc/exim4/passwd.client
When i enter this i get:
Code:
lynx@Tabby:~$ dpkg-statoverride --remove /etc/exim4/passwd.client
dpkg-statoverrides: unrecoverable fatal error, aborting:
 syntax error: unknown user 'backuppc' in statoverride file
Even running as "sudo" dosnt work. Am i doing something wrong here?
 
Old 02-28-2011, 04:24 PM   #4
cyco
LQ Newbie
 
Registered: Feb 2011
Location: Moorestown, NJ
Distribution: Ubuntu, Linux Mint
Posts: 14

Original Poster
Rep: Reputation: 0
Ha! Thanx so much. I just removed the entry with 'backuppc' from '/var/lib/dpkg/statoverride' and now its working. Is this caused by removing the user 'backuppc' with the command 'userdel'?

Last edited by cyco; 02-28-2011 at 04:28 PM.
 
Old 02-28-2011, 04:28 PM   #5
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 50
Try this:
Code:
sudo cp /var/lib/dpkg/statoverride /var/lib/dpkg/statoverride.old
sudo cat /var/lib/dpkg/statoverride | grep -Gv "^backuppc " > /var/lib/dpkg/statoverride

Last edited by Ephracis; 02-28-2011 at 04:30 PM.
 
Old 02-28-2011, 04:30 PM   #6
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 50
I am not sure why dpkg didn't update the file. I usually use either deluser or the GUI tools if I have X running. But the two lines above would have removed the backuppc user anyway.

Glad it helped!
 
Old 02-28-2011, 04:42 PM   #7
cyco
LQ Newbie
 
Registered: Feb 2011
Location: Moorestown, NJ
Distribution: Ubuntu, Linux Mint
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks again for the location of that file. Now that I know where it is I can nip this in the butt right away if I see it again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 'dpkg--configure-a' E: dpkg was interrupted error Mountain Man 77 Linux - Newbie 8 02-21-2015 11:59 PM
Updating Ubuntu 9.04 server fom behind a ISA firewall Mark_667 Ubuntu 0 08-20-2009 11:13 AM
dpkg-reconfigure xserver-xfree86 not updating XF86Config-4; changes not present in gd eggmatters Debian 2 07-12-2009 11:32 PM
Ubuntu newbie, E: dpkg was interrupted, you must manually run 'dpkg --configure -a' ? chinkychan Linux - Newbie 1 01-28-2009 11:21 PM
LDAP trouble: login on server OK, remote fails nielchiano Linux - Networking 2 04-29-2004 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration