Ubuntu 'dpkg--configure-a' E: dpkg was interrupted error
Linux - NewbieThis 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
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.
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.
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.
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.
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
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.