[SOLVED] Can not install new software on my system
Linux - SoftwareThis 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
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.
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.
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.
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)
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.