update manager won't run it ask for dpkg --configure -a

Asked by billylondon

When running update manager, the system stopped. It seems that the process was interrupted. When I reboot the system and re-run update manager, the following error message shows:

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

Please advise how to fix this problem. Thank you very much.

Bill

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
billylondon
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

The "dpkg --configure -a" is asked by the system when a previous update/upgrade process have not completely performed good, and it must run with "root" privileged administrative user.
Using the "sudo" command we can do a command as "root" user, and "dpkg --configure -a" need be run from root user.
After the "dpkg --configure -a" command i add all the usual commands (see below) you can run to be sure your system became fully upgraded.

Please also subscribe this bug https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/108601/

Typing the commands as sudo the system will ask you for a password, please give your user password when requested, you don't see nothing when you type it, then press enter.

So please be sure your system is fully updated/upgraded with no pending packages or errors:

Open a Terminal from the menu Applications → Accessories → Terminal and type:
(if the system ask you a password give your user password, you will not see nothing when you type it, then press enter)

sudo dpkg --configure -a

then to update and upgrade and also check pending or missing packages, still using terminal type:

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

Hope this helps

Revision history for this message
billylondon (billylondon) said :
#2

Thank you, marcobra.

I type sudo dpkg --configure -a in Terminal and run.....

It came out some error message.

I exit Terminal.

Reboot and run update manager again.

the system seems repair itself. It installed and updated all the files.

Bill

Revision history for this message
abhinaba moulik (abhinaba-moulik) said :
#3

go to Terminal from the menu Applications → Accessories → Terminal and type:
(if the system ask you a password give your user password, you will not see
nothing when you type it, then press enter)

sudo dpkg --configure -a

then to update and upgrade and also check pending or missing packages,
still using terminal type:

sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove
                      BEST OF LUCK

On Mon, Apr 13, 2009 at 9:35 PM, billylondon <
<email address hidden>> wrote:

> New question #67338 on Ubuntu:
> https://answers.launchpad.net/ubuntu/+question/67338
>
> When running update manager, the system stopped. It seems that the process
> was interrupted. When I reboot the system and re-run update manager, the
> following error message shows:
>
> "E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to
> correct the problem.
> E: _cache->open() failed, please report."
>
> Please advise how to fix this problem. Thank you very much.
>
> Bill
>
>
> --
> You received this question notification because you are an answer
> contact for Ubuntu.
>

Revision history for this message
long live linux (tubai-moulik) said :
#4

You have been invited to join CYBER FREAKS
_____________________________________________

Click this link to join: http://longlivers.webs.com/apps/auth/confirm?inviteID=20223528&hash=806a4834a1ab5112223b416268d566c7&action=accept
_____________________________________________

PS: If you don't want to join this site, click here: http://longlivers.webs.com/apps/auth/confirm?inviteID=20223528&hash=806a4834a1ab5112223b416268d566c7&action=decline

Revision history for this message
s frahm (sfrahm) said :
#5

Thank You. This always works for me, 3 out of 3 times.

BTW - What would it take to create a script to perform these all of actions? I have had to do this very thing on three of four Ubuntu 11.04 Natty installs so far this year. A "fix my update manager" script like the infamous M$ fix my problem wizards (yes I know, UN-install M$ anything, replace it with your favorite flavor of Ubuntu Kubuntu Mint etc.). Thanks again!