LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-15-2012, 10:55 PM   #1
skeeve146
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Rep: Reputation: 0
Can not install new software on my system


Hello,

When I try to download new software or upgrade on Ubuntu 12.04 I get this error message:
dpkg: syntax error: unknown user'amavis' in stateoverride file
E: Sub-process /usr/bin/dpkg returned and error code(2)
A package failed to install. Trying to recover:

June 2005 Stephan789, using Debian Etch, posted this question and the answer is:
delete
/var/lib/dpkg/stateoverride
delete
/var/lib/dpkg/
lock
sudo dpkg --configure -a
sudo apt-get -f install
Being new to this how do you go about deleteing /var/lib/dpkg/stateoverride and /var/lib/dpkg/lock.
Will this also work on Ubuntu 12.04?
This is also the only place this past week I have found an answer.
 
Old 08-16-2012, 10:47 AM   #2
earthnet
Member
 
Registered: Jul 2012
Distribution: OpenSUSE
Posts: 36

Rep: Reputation: Disabled
How are you trying to install software? From the command line? From the package manager?
 
Old 08-16-2012, 11:35 AM   #3
skeeve146
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Have tried both.
Tried sudo dpkg --configure -a and got no response.
sudo apt-get -f install
got this

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libva-x11-1 libxcb-keysyms1 libbluray1 libresid-builder0c2a libxcb-xv0
libtar0 libgmtk0 libcddb2 libdvbpsi7 libvlc5 libupnp3 libaacs0 libcrystalhd3
libxcb-randr0 libxcb-composite0 libgmtk0-data libsidplay2 libvdpau1 vlc-data
libvlccore5 libgmlib0 libebml3 libmatroska5 libsdl-image1.2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libpostproc52
The following NEW packages will be installed:
libpostproc52
0 upgraded, 1 newly installed, 0 to remove and 62 not upgraded.
Need to get 0 B/116 kB of archives.
After this operation, 408 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: unrecoverable fatal error, aborting:
syntax error: unknown user 'amavis' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)
 
Old 08-16-2012, 11:42 AM   #4
skeeve146
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
forgot to mention did do apt-get autoremove
this is what I got

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
how do I find if I have root?
 
Old 08-16-2012, 09:19 PM   #5
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 7,422

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
In Ubuntu, you must use sudo to install and remove software and configure global settings.

This article will tell you more. https://help.ubuntu.com/community/RootSudo
 
Old 08-16-2012, 09:39 PM   #6
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: SolydX
Posts: 399

Rep: Reputation: 82
Create a new user for yourself and try running it from that account. If it works, there is an issue with the account you were trying to use, maybe one too many tweaks.
 
Old 08-17-2012, 12:36 AM   #7
skeeve146
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I now have a better understanding of root sudo.

What ever I do it comes down to these two "lines"
/var/lib/dpkg/stateoverride
/var/lib/dpkg/lock
how do I go about to remove them?

Doing more research, "dpkg is the software at the base of the Debian package management system." Should this even be on my system, Ubuntu?
 
Old 08-17-2012, 02:18 AM   #8
kedarp
Member
 
Registered: Jul 2012
Location: Pune, India
Distribution: Mageia 4
Posts: 182

Rep: Reputation: 22
Code:
$sudo rm /var/lib/dpkg/statoverride
Look at "statoverride", its not "stateoverride"

Code:
$sudo rm /var/lib/dpkg/lock
Ubuntu uses dpkg, debian package management system. It is derived from Debian. So it is
present on your system.

Code:
$sudo dpkg --configure -a
$sudo apt-get -f install
Quote:
June 2005 Stephan789, using Debian Etch, posted this question
You should mention the link of the thread where you found the above commands.

Last edited by kedarp; 08-17-2012 at 02:25 AM.
 
1 members found this post helpful.
Old 08-17-2012, 08:42 PM   #9
skeeve146
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks this worked, I want to thank all of you that helped me with this problem.
 
  


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
Cannot install or remove software and cannot update my system! jhazz Linux - General 8 04-12-2012 10:29 PM
How to install software to base system from command line? Randymanme Ubuntu 5 12-21-2009 05:26 PM
Why I cannot install new software on my system Stephan789 Linux - Software 2 02-12-2008 12:57 PM
how to install a software in the linux system from some other distribution?? ashmita04 Linux - General 3 08-03-2007 05:21 AM
how to install software for all users in a system - with a .bin file? razor206 Linux - Software 1 01-15-2006 02:04 AM


All times are GMT -5. The time now is 12:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration