LinuxQuestions.org
Help answer threads with 0 replies.
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-31-2007, 08:25 PM   #1
cerc
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
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,593

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

>su
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
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
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:
Code:
$ sudo su  
<your_regular_user_password>

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


OP, try:
Code:
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
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
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
salavin
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
root@salavin-desktop:~#

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


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
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


All times are GMT -5. The time now is 07:28 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