E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem

Asked by Arnold

Binary package hint: grub

How do I do this?

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

ProblemType: Package
Architecture: i386
Date: Thu Feb 4 22:17:01 2010
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: linux-image-2.6.31-19-generic 2.6.31-19.56
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
SourcePackage: grub
Title: package linux-image-2.6.31-19-generic 2.6.31-19.56 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Uname: Linux 2.6.31-17-generic i686

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Solved by:
Dan Buhrman
Solved:
Last query:
Last reply:
Revision history for this message
Arnold (lnippe) said :
#1
Revision history for this message
Dan Buhrman (dan-buhrman) said :
#2

Hello Arnold. In the future, if you are unsure of how to complete something, please direct your inquires to the Ubuntu forums, or here to Ubuntu answers.

For this particular issue, it appears something went wrong while attempting to update to the latest kernel version. When an error message asks you to run a command, you need to open a Terminal (Applications -> Accessories -> Terminal) and then enter the command there. In this particular case, you will need to open the terminal, type 'sudo dpkg --configure -a' (without quotes) and then press enter. If you are prompted for a password, enter your password, then, dpkg will attempt to configure all the packages that haven't yet been configured.

If it still fails, then try clearing out your apt cache and then upgrade again. Enter this command (then press enter):
sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade

I hope this helps. Please don't hesitate to continue to submit bug reports or ask support questions in the future.

Revision history for this message
Soul-Sing (soulzing) said :
#3

please run sudo dpkg --configure -a in the terminal==>enter===>password==>enter

Revision history for this message
Soul-Sing (soulzing) said :
#4

if this doesn't work sudo apt-get -f install which means force install)

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

You strictly need to open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo dpkg --configure -a

give your user password when requested, you don't see nothing when you type it, then press enter.
-------------------------------------------------------------------

But to fully check and upgrade your system using terminal using command line,
open a Terminal from the menu Applications->Accessories->Terminal

Tip: right click with mouse on the terminal title caption and select the item "Always on Top" doing this you will force the terminal window to stay on top of the other windows and you will find very easy to copy single row from this web page into the terminal...
Something more about using the terminal https://help.ubuntu.com/community/UsingTheTerminal

Then type or better copy and paste a row a time then press enter:
(Tip: select the single row to copy then right click into the terminal and to quick paste click with middle button of mouse )

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Revision history for this message
Arnold (lnippe) said :
#6

Thanks so much for your help. I successfully resolved this problem. I've been away from my e-mail and now see that three people responded with good answers, yours being the most comprehensive. I am very pleased to see the responsiveness of the Ubuntu community. Now if there were a way to use a boot loader instead of just changing boot order in my CMOS to switch between Ubuntu and XP, that would be great. I no longer trust the Ubuntu boot loader as it wanted to control my xp drive earlier. Us users who are still less confident with Linux than Windows would love to have an easy way to swithch to Ubuntu when booting a Windows drive. ;)

---------- Original Message ----------
From: "marcobra \(Marco Braida\)" <email address hidden>
To: <email address hidden>
Subject: Re: [Question #99969]: package linux-image-2.6.31-19-generic 2.6.31-19.56 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Date: Fri, 05 Feb 2010 21:34:49 -0000

Your question #99969 on yelp in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/yelp/+question/99969

marcobra (Marco Braida) proposed the following answer:
You strictly need to open a Terminal from the menu
Applications->Accessories->Terminal and type:

sudo dpkg --configure -a

give your user password when requested, you don't see nothing when you type it, then press enter.
-------------------------------------------------------------------

But to fully check and upgrade your system using terminal using command line,
open a Terminal from the menu Applications->Accessories->Terminal

Tip: right click with mouse on the terminal title caption and select the item "Always on Top" doing this you will force the terminal window to stay on top of the other windows and you will find very easy to copy single row from this web page into the terminal...
Something more about using the terminal https://help.ubuntu.com/community/UsingTheTerminal

Then type or better copy and paste a row a time then press enter:
(Tip: select the single row to copy then right click into the terminal and to quick paste click with middle button of mouse )

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove

give your user password when requested, you don't see nothing when you
type it, then press enter.

Hope this helps

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+source/yelp/+question/99969/+confirm?answer_id=4

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+source/yelp/+question/99969

You received this question notification because you are a direct
subscriber of the question.
____________________________________________________________
Senior Assisted Living
Put your loved ones in good hands with quality senior assisted living. Click now!
http://thirdpartyoffers.juno.com/TGL2131/c?cp=JweZUrKGI2AiO2QfWuQfuAAAJz3lMWYYt0ZaPc-mdOySKKglAAYAAAAAAAAAAAAAAAAAAADNAAAAAAAAAAAAAAAAAAASUQAAAAA=

Revision history for this message
Best Dan Buhrman (dan-buhrman) said :
#7

Unfortunately, you cannot use the Windows boot loader to load Linux, Windows is greedy this way. Grub (the default boot loader for Ubuntu) should not take over any drives. It will however, take over the MBR and take a small portion of your Ubuntu partition to store itself. Below is a link to all the documentation on Grub2, unfortunately, this newer version of Grub was just implemented with the latest release of Ubuntu (9.10), and I have very little experience with it thus far, however, the Ubuntu help site has an abundant amount of information on how to install and modify it. As with everything Open Source, Grub is highly configurable and customisable! :)

https://help.ubuntu.com/community/Grub2

Revision history for this message
Arnold (lnippe) said :
#8

Great support! Thanks to all.