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

Bug #323894 reported by Joerg Bischoff
164
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Fix Released
High
Michael Vogt
Intrepid
Fix Released
High
Michael Vogt
Jaunty
Fix Released
High
Michael Vogt

Bug Description

manually run dpkg --configure -a does not help.
I am not able to install any packages.

TEST CASE:
 1. when the system is in incosistent state (e.g. because of bad xine update) run: sudo dpkg --configure -a
 2. verify that it does not behave corretly anymore and errors out
 3. install the updated version of dpkg (with wget and dpkg -i)
     wget https://edge.launchpad.net/%7Emvo/+archive/ppa/+files/dpkg_1.14.20ubuntu6.1_i386.deb
     dpkg -i dpkg_1.14.20ubuntu6.1_i386.deb
 4. verify that it installs correctly and runs some pending trigger actions
 5. run "sudo dpkg --configure -a" and verify that this works without error

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: Paket ghostscript ist nicht bereit zur Konfiguration
NonfreeKernelModules: nvidia
Package: ghostscript 8.63.dfsg.1-0ubuntu6.2
SourcePackage: ghostscript
Title: package ghostscript 8.63.dfsg.1-0ubuntu6.2 failed to install/upgrade: Paket ghostscript ist nicht bereit zur Konfiguration
Uname: Linux 2.6.27-11-generic i686

Revision history for this message
Joerg Bischoff (joerg-bischoff) wrote :
Revision history for this message
Patrick Brueckner (madmuffin) wrote :

try manually removing ghostscript and re-run dpkg --configure -a

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

Could you please try the intrepid dpkg version in
https://edge.launchpad.net/~mvo/+archive

It should fix the issue, its a bug with inconsistency in the dpkg triggers database.
You will need to manually download it and then install it with dpkg -i

Thanks,
 Michael

Changed in dpkg:
status: New → Incomplete
status: Incomplete → In Progress
Michael Vogt (mvo)
description: updated
Changed in dpkg:
assignee: nobody → mvo
Michael Vogt (mvo)
description: updated
Michael Vogt (mvo)
Changed in dpkg:
importance: Undecided → High
Revision history for this message
Joerg Bischoff (joerg-bischoff) wrote :

Hello,

the workaround:

TEST CASE:
 1. when the system is in incosistent state (e.g. because of bad xine update) run: sudo dpkg --configure -a
 2. verify that it does not behave corretly anymore and errors out
 3. install the updated version of dpkg (with wget and dpkg -i)
     wget https://edge.launchpad.net/%7Emvo/+archive/ppa/+files/dpkg_1.14.20ubuntu6.1_i386.deb
     dpkg -i dpkg_1.14.20ubuntu6.1_i386.deb
 4. verify that it installs correctly and runs some pending trigger actions
 5. run "sudo dpkg --configure -a" and verify that this works without error

Solved my problem :-)

Thanks a lot.

Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into intrepid-proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in dpkg:
status: New → Fix Committed
Revision history for this message
Jcruthers (jcarrt) wrote :

Thanks Joerg Bischoff, your workaround helped. It fixed my problem. Thanks.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your feedback and I'm happy that it works for you now.

There is more positive feedback on the patch at:
https://bugs.edge.launchpad.net/ubuntu/+source/xine-lib/+bug/323073 (comments 11-22)

Revision history for this message
Michael Vogt (mvo) wrote :

This dpkg problem is fixed in jaunty as well.

Changed in dpkg:
status: In Progress → Fix Released
assignee: nobody → mvo
importance: Undecided → High
Revision history for this message
mjunker (markojunker) wrote :

It works fine for me in inteprid. thx

Revision history for this message
Martin Pitt (pitti) wrote :

A lot of +1 in bug 323073, and no regression reports, considering verified.

Revision history for this message
thijse (th-evers51) wrote :

problem has been fixed

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dpkg - 1.14.20ubuntu6.1

---------------
dpkg (1.14.20ubuntu6.1) intrepid-proposed; urgency=low

  * deal with dpkg database in inconsitent state
    (git commit 4c93e0ea1c95dd9259ae0424766913ade140a4b3)
    LP: #323894

  [ Guillem Jover ]
  * When loading the status file fix up any inconsistent package in state
    triggers-awaited w/o the corresponding package with pending triggers.
    Closes: #487637, #486843, #489068

 -- Michael Vogt <email address hidden> Wed, 04 Feb 2009 09:30:15 +0100

Changed in dpkg:
status: Fix Committed → Fix Released
midhun (midhunse)
Changed in dpkg:
assignee: mvo → midhunse
midhun (midhunse)
Changed in dpkg:
assignee: midhunse → mvo
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.