Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-31-2007, 08:25 PM   #1
LQ Newbie
Registered: Aug 2007
Location: Eugene, Oregon
Posts: 1

Rep: Reputation: 0
Red face Synaptic Package Manager Error: 'dpkg --configure -a'

For some reason when I attempt to open synaptic package manager or add/remove, I get the following error:

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.

I've read several other forums, all suggesting to run

sudo 'dpkg --configure -a'

in terminal. In doing so I get command not found. I found on the same thread the following suggestion:

cd /var/lib/dpkg/updates
rm *

When I do this in terminal, I get: rm: remove write-protected regular file `0000'?
What am I supposed to do at this point? If I type yes I get a permission denied message.

I've had Ubuntu for a very short time, and am increasingly frustrated with the errors and difficulty I'm having with installations. If anyone can help me with this error message, I will be most grateful.
Old 09-02-2007, 06:14 AM   #2
Senior Member
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,013

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
su to root user like so:

root password

the do
>locate dpkg | less

find the dpkg command's path, and type the whole thing on the command line
Old 09-03-2007, 08:18 AM   #3
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
I don't think that's going to work, unless he has enabled a root password -- not the default in an Ubuntu installation.

What should work is this:
$ sudo su  

# whereis dpkg
Since both my SimplyMEPIS 3.3.2 & 6.0 systems show
I have every reason to believe that that's the right answer for Ubuntu also.

OP, try:
sudo dpkg --configure -a
-- I don't think sudo needs the quotes.

Also, would you please post (by pasting) your key commands & error msgs.?
Old 10-04-2007, 11:35 AM   #4
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
Would you please post your results.

We answer your Q's here, not just to help you, but others w/ the same or similar problems. It's helpful for all to know what worked (or didn't work).
Old 10-10-2007, 06:22 PM   #5
LQ Newbie
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
Exclamation dpkg problem

the same thing almost.must run command 'sudo dpkg --configure -a' etc...but my problem is that the package can't be downloaded, not even in terminal window.what should i do?i tried what u see down, but even with root account i can't repair the faulty synoptic package.i can't enter at all. advices?
root@salavin-desktop:~# passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@salavin-desktop:~# /var/lib/dpkg/status file
-bash: /var/lib/dpkg/status: Permission denied

Last edited by salavin; 10-11-2007 at 06:32 AM.


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
Synaptic Package Manager problems prioxy error SVwander Ubuntu 2 05-06-2007 10:22 AM
no synaptic package manager unisol Debian 1 01-09-2007 07:23 AM
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
Synaptic Package Manager Error.... openbsd-inetd Perquisitor Debian 2 09-05-2006 10:30 AM
synaptic package manager forcing me to delete a broken package mbman Linux - Software 6 04-25-2006 09:30 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:50 PM.

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