LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2009, 01:10 PM   #1
Mountain Man 77
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Rep: Reputation: 0
Unhappy Ubuntu 'dpkg--configure-a' E: dpkg was interrupted error


Hi,
I am very new to linux, and frankly I do not know a whole lot about computers in general, as I'm entirely self taught, and that was all on windows. I really like the idea and concept of linux and ubuntu, and am in the process of learning. I have recently installed Ubuntu 8.04 LTS on an ex Vista computer at work (upon the urging by the boss). I can give more information on the system if needed. However, I think the problem may not be with the system. This is what I got. I installed the o/s and started downloading the updates from the list. As I tried to install Samba and Wine, all of a sudden things started to become complicated. As I'm doing this at work, and everyone is excited to 'play' with this new o/s, someone tried to download limewire as well, when I was away. I didn't see the error messages at that point, but they apparently had some message about java, and tried to shut everything down. Now when I came back, I get this message:

E: dpkg was interrupted you must manually run 'dpkg -- configure - a' to correct.
Problem E: _cache->open()failed

So, not knowing much about linux and even less about using the terminal, I did open the terminal, and typed in: dpkg--configure-a and hit enter. Then it tells me that that command is not found.

I have followed some other posts that deal with this problem, however, all the remedies that worked for them did not work for me. I could use some help, please. My other option is to just reinstall the o/s all over and start new. Thank you.
 
Old 01-08-2009, 01:12 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Hi and welcome to the forum. Run Applications -> Accessories -> Terminal and enter
Code:
sudo dpkg --configure - a
 
Old 01-08-2009, 01:13 PM   #3
SkinnerC
Member
 
Registered: Dec 2007
Location: New England, USA
Distribution: Ubuntu 8.04 LTS, Slackware 12.2
Posts: 138
Blog Entries: 1

Rep: Reputation: 20
Type in
Code:
sudo dpkg -- configure - a
lol I was too slow

Last edited by SkinnerC; 01-08-2009 at 01:13 PM. Reason: Edit
 
Old 01-08-2009, 02:42 PM   #4
Mountain Man 77
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you both for your replies. This indeed gets me into another menu:

dpkg: need an action option

Type dpkg --help for help about installing and deinstalling packages[*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --licence for copyright licence and lack of warranty (GNU GPL)[*].

Options marked[*] produce a lot of output - pipe it through `less' or `more' !
user1@LinuxDesktop:~$

I used 'aptitude' and it gave me a list of security updates, Installed Packages, Not Installed Packages, Virtual Packages, and Tasks.

Now, I know this is going to make me sound very silly...but I don't even know what I'm looking for or what caused the error to appear in the first place. That's why it is hard for me to know where to go from here. Not having any programming or much computer knowledge in general, I'm a little lost. Any ideas on how I could figure out what is causing it so I can fix it? I'm sorry, this probably sounds like a silly question.
Thank you.
 
Old 01-08-2009, 02:46 PM   #5
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Enter the command as it should be: sudo dpkg --configure -a (note the absence of spaces before "configure" and "a").

Last edited by jay73; 01-08-2009 at 02:47 PM.
 
Old 01-08-2009, 02:56 PM   #6
Mountain Man 77
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
ok, thanks ...it's doing something with that. I'm going to see if it changed anything. Thank you so much.
I got so much to learn, and so little time to learn it in! The help is awesome, however.
Take care.

Allright, that worked. It is installing more updates now. However, it is telling me that I have one broken package, and that I have to use the 'Broken' filter to locate it. I will now undertake an endeavor to do so....
Thanks again for the help.

Last edited by Mountain Man 77; 01-08-2009 at 03:01 PM.
 
Old 07-19-2009, 02:41 AM   #7
Solvision
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Rep: Reputation: 0
Hey Guys

OK i had this same error. Computer froze while updating.

I tried all the fixes i could find (sudo nano /var/lib/dpkg/updates/0012) which didn't work. Kept getting a parse error msg on running: sudo dpkg --configure -a

People had mentioned their being padding in their broken files, but i couldn't find any in mine. When i saw mine it was just gibberish.

I navigated to the /var/lib/dpkg/updates/ directory and saw that the last 3 files were "unknown" in file type. So i then deleted them from within the terminal:

cd /var/lib/dpkg/updates/
ls
sudo rm 0012
sudo rm 0013
sudo rm tmp.i

then ran:
sudo dpkg --configure -a

without problems.

Hope this helps.
 
Old 05-25-2010, 10:52 AM   #8
bellyflop
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 1
I also had the updates freeze while installing on Ubuntu 10.4 LTS (sudo aptitude upgrade). The /var/lib/dpkg/updates/ directory was empty, so I rebooted and then ran the following:

sudo aptitude clean
sudo aptitude update
sudo aptitude safe-upgrade

This seems to have fixed the problem for me.

Best of luck.
 
1 members found this post helpful.
Old 02-21-2015, 10:59 PM   #9
shaheb_bd
LQ Newbie
 
Registered: Feb 2015
Posts: 1

Rep: Reputation: Disabled
Thumbs up Perfect Solution

Quote:
Originally Posted by jay73 View Post
Enter the command as it should be: sudo dpkg --configure -a (note the absence of spaces before "configure" and "a").
This is good solution, everyone can follow this solution to solve this problem.
 
  


Reply



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
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 10:28 AM
E:dpkg was interrupted,you must manually run"dpkg --configure -a" to correct problem loplop4 Debian 5 09-29-2008 11:11 AM
Error dpkg was interrupted UbuntuLinux4Life Linux - Software 2 07-30-2008 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration