Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-28-2011, 11:18 AM
|
#1
|
LQ Newbie
Registered: Feb 2011
Location: Moorestown, NJ
Distribution: Ubuntu, Linux Mint
Posts: 14
Rep:
|
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?
|
|
|
02-28-2011, 04:07 PM
|
#2
|
Senior Member
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109
Rep:
|
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.
|
02-28-2011, 04:19 PM
|
#3
|
LQ Newbie
Registered: Feb 2011
Location: Moorestown, NJ
Distribution: Ubuntu, Linux Mint
Posts: 14
Original Poster
Rep:
|
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?
|
|
|
02-28-2011, 04:24 PM
|
#4
|
LQ Newbie
Registered: Feb 2011
Location: Moorestown, NJ
Distribution: Ubuntu, Linux Mint
Posts: 14
Original Poster
Rep:
|
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.
|
|
|
02-28-2011, 04:28 PM
|
#5
|
Senior Member
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109
Rep:
|
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.
|
|
|
02-28-2011, 04:30 PM
|
#6
|
Senior Member
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109
Rep:
|
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!
|
|
|
02-28-2011, 04:42 PM
|
#7
|
LQ Newbie
Registered: Feb 2011
Location: Moorestown, NJ
Distribution: Ubuntu, Linux Mint
Posts: 14
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|