_cache->open() failed, please report

Asked by Lionel Scheepmans on 2007-07-06

Bonjour,

J'ai quelque problèmes qui se sont enchaîné avec mon installation ubuntu 7.04.
Je n'arrive plus a lancer synaptic après avoir encodé mon mot de passe il m'affiche ceci:
"E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report."

Peut être ce problème est-il lié à un autre bug car après avoir configuré ma webcam dans amsn ce dernier programme ne veut plus démarrer non plus il affiche une icône rouge dans le tableau de bord mais elle est inactive. J'ai ensuite installé via le site skype une nouvelle version du logicielle dans l'espoir de pouvoir utiliser ma webcam mais l'installation a échouée et c'est peut être une autre raison du bug.

Le plus gênant c'est que je ne sais plus faire les mises à jour de sécurité car je reçois le même message en utilisant le gestionnaire de mise à jour.

Merci d'avance pour votre aide.

Lionel

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Last query:
2007-07-06
Last reply:
2009-11-21
Kees Cook (kees) said : #1

Thanks for your report! This isn't a security problem (basically, the mentioned command needs to be run). This will be the master bug report for such issues. Also, please only report bugs in English, since that is the common language spoken by most developers.

Kees Cook (kees) said : #2

And, to note, the solution is to open a Terminal and run:

  sudo dpkg --configure -a

Ok the problem is resolv whith the "sudo dpkg --configure -a"
Thanks for you help and i promise to whrite only in english for next time in this site.
But do you know where i can found help and a right place for bug report in french for Ubuntu ?

Koen Beek (koen-beek) said : #4

Bonjour Lionel,

  si tu a une question sur ubuntu tu peut la poser en français a l'adresse suivante https://answers.launchpad.net/ubuntu/+addquestion
  il faut sélectionner le langage a utiliser

  si il s'avère qu'il s'agit d'un bug il faut mieux utiliser l'Anglais puisque c'est le langage utilise pour communiquer entre développeurs

Tony (ajwatkin) said : #5

I am experiencing the same error message Lionel got but, for me, running the dpkg command which worked for Lionel does not resolve the problem on my PC.

Is there anything else I can do?

Thank you,

Tony

Tony (ajwatkin) said : #6

Me again . . .

I tried again today and it worked. I hadn't allowed enough time yesterday for the command to complete.

Tony

geo127 (gisihos) said : #7

hello i am new here can anyone tell me what i can do exactly to resolve the problem

Vadim Peretokin (vperetokin) said : #8

You need to go to Applications - Accessories - Terminal, right-click and paste this in:

sudo dpkg --configure -a

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.

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:

Open a Terminal from the menu Applications → Accessories → Terminal and type:

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

Thank you

thanks for that,
went to terminal to attempted to put my password in and it doesn't appear to be working
cheers
sandra

________________________________
From: Vadim Peretokin <email address hidden>
To: <email address hidden>
Sent: Friday, 14 November, 2008 3:03:38 PM
Subject: [Bug 124373] Re: _cache->open() failed, please report

You need to go to Applications - Accessories - Terminal, right-click and
paste this in:

sudo dpkg --configure -a

--
_cache->open() failed, please report
https://bugs.launchpad.net/bugs/124373
You received this bug notification because you are a direct subscriber
of a duplicate bug.

Vadim Peretokin (vperetokin) said : #11

The password won't show for security reasons. Just type it in and press
enter.

thanks yes i've done that,
but the terminal tells me password has failed
cheers
sandra

________________________________
From: Vadim Peretokin <email address hidden>
To: <email address hidden>
Sent: Sunday, 16 November, 2008 2:03:01 PM
Subject: Re: [Bug 124373] Re: _cache->open() failed, please report

The password won't show for security reasons. Just type it in and press
enter.

--
_cache->open() failed, please report
https://bugs.launchpad.net/bugs/124373
You received this bug notification because you are a direct subscriber
of a duplicate bug.

Vadim Peretokin (vperetokin) said : #13

Password failed? You need to put in the same password you use to login to
your Ubuntu.

psychodoggy (kees-psyfactory) said : #14

I'm experiencing the same problem, only running dpkg --configure -a doesn't solve the problem:

========================
kees@ubuntu:~$ sudo dpkg --configure -a
Setting up system-tools-backends (2.6.0-1ubuntu1.1) ...
 * Starting System Tools Backends system-tools-backends
invoke-rc.d: initscript system-tools-backends, action "start" failed.
dpkg: error processing system-tools-backends (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: ../../src/packages.c:221: process_queue: Assertion `dependtry <= 4' failed.
Aborted
========================

Does anyone has got any idea how to fix this?

hello,

yes i did that
thanks

________________________________
From: Vadim Peretokin <email address hidden>
To: <email address hidden>
Sent: Sunday, 16 November, 2008 2:47:51 PM
Subject: Re: [Bug 124373] Re: _cache->open() failed, please report

Password failed? You need to put in the same password you use to login to
your Ubuntu.

--
_cache->open() failed, please report
https://bugs.launchpad.net/bugs/124373
You received this bug notification because you are a direct subscriber
of a duplicate bug.

Jonathan Gossage (jgossage) said : #16

This bug was originally reported 18 months ago and it now has 23 duplicates. In general, the advice has been to run

sudo dpkg --configure -a
followed by at least
sudo apt-get update
sudo apt-get upgrade

while this action seems to have corrected the problem for some users, others including my self have found that dpkg --configure -a also fails.

My question is -
What action must be taken to re-enable the ability to update Ubuntu after a dpkg failure that cannot be recovered with dpkg --configure. I can use neither update-manager nor apt at this point.

I am running on 8.10 and got the following result from dpkg

Setting up icedtea6-plugin (6b12-0ubuntu6.1) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
dpkg: ../../src/packages.c:221: process_queue: Assertion `dependtry <= 4' failed.
Aborted
jonathan@hippocrates:~$ sudo apt-get -f install
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
jonathan@hippocrates:~$ sudo dpkg --configure -a
Processing triggers for menu ...
dpkg: ../../src/packages.c:221: process_queue: Assertion `dependtry <= 4' failed.
Aborted

A second question is: what is being done to make the low level update code such as dpkg more robust?

Koen Beek (koen-beek) said : #17

One way to try to get out of the 'dependtrt <= 4' error is the following

do a
 sudo dpkg -l | grep -v ^ii

to list the packages that are not installed correctly

sudo dpkg --purge remove those packages listed before

Koen Beek (koen-beek) said : #18

If you want to leave packages that have been removed but that still have config files installed

try the following list instead

sudo dpkg -l | grep -v ^ii | grep -v ^rc

missyblouir (missy-blouir) said : #19

how do I open a terminal

@missyblouir please simply read in this page the post: marcobra (Marco Braida) said on 2008-11-15:

Thank you

Can you help with this problem?

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

To post a message you must log in.