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

Asked by john

Binary package hint: gnome-utils

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

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/gnome-system-log
Package: gnome-utils 2.24.1-0ubuntu1
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-utils
Uname: Linux 2.6.27-9-generic i686

Revision history for this message
john (john-pieer199) said :
#1
Revision history for this message
Connor Imes (ckimes) said :
#2

This is not a bug, this is normal behavior for when a package manager is interrupted. Please open a terminal and run
   sudo dpkg --configure -a
If there is any output, copy and paste it back here. Otherwise you should be able to use your package managers normally now.

Revision history for this message
rasuwal (rasuwal) said :
#3

hi i am also getting same problem. when i run terminal message comes like this
rasuwal@rasuwal-desktop:~$ sudo dpkg -- configure -a *
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 --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
I new to linux. What i actually doing is try to install open office database from add/remove application. will any one solve my headache

Revision history for this message
Connor Imes (ckimes) said :
#4

rasuwal, you don't put an asterisk at the end when running this command, it is just
   sudo dpkg -- configure -a
and there should be no output.
In the future, please create a new question for problems rather than using somebody else's. Thank you.

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

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 subcribe 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
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
Anders (andersja+launchpad-net) said :
#6

I got an error message in synaptic telling me to manually run the command, however it does not fix the situation:

$ sudo dpkg --configure -a
[sudo] password for andersja:
Processing triggers for menu ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
dpkg: ../../src/packages.c:221: process_queue: Assertion `dependtry <= 4' failed.
Aborted

... now what?

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

plase read https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/262451
Seem fixed so please try to install the package from here:
As i read in the original question you have Ubuntu 8.10 intrepid i386

So please try:

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)

wget http://launchpadlibrarian.net/21991773/dpkg_1.14.20ubuntu6.1_i386.deb
sudo dpkg -i dpkg_1.14.20ubuntu6.1_i386.deb
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Hope this helps

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

Sorry better...

Please read https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/262451
Seem fixed so please try to install the package from here:
As i read in the original question you have Ubuntu 8.10 intrepid i386

So please try:

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)

wget http://launchpadlibrarian.net/21991773/dpkg_1.14.20ubuntu6.1_i386.deb
sudo dpkg -i dpkg_1.14.20ubuntu6.1_i386.deb

sudo dpkg --configure -a

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Hope this helps

Revision history for this message
emboko (embokosolondalu) said :
#9

hi.
i run ubuntu 8.04LTS. the dpkg error is driving me nuts!when i use sudo dpkg --configure -a , this is what i get. not even a chance to input the password.

mike@mike-rottenapple-laptop:~$ sudo dpkg --configure -a
sudo: unable to resolve host mike-rottenapple-laptop
mike@mike-rottenapple-laptop:~$

somebody help, please

Can you help with this problem?

Provide an answer of your own, or ask john for more information if necessary.

To post a message you must log in.