Upgrade tool crashes with "E:dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem"

Asked by Yra

Binary package hint: update-manager

Here's what message I got:

Traceback (most recent call last):
  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/dist-upgrade.py", line 60, in <module>
    app.run()
  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeController.py", line 1550, in run
    self.fullUpgrade()
  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeController.py", line 1425, in fullUpgrade
    if not self.prepare():
  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeController.py", line 346, in prepare
    self.openCache()
  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeController.py", line 209, in openCache
    self._view.getOpCacheProgress())
  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeCache.py", line 51, in __init__
    raise CacheExceptionDpkgInterrupted, e
CacheExceptionDpkgInterrupted: E:dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

Here is the /var/log/dist-upgrade/main.log:

2008-05-05 18:24:08,912 INFO release-upgrader version '0.87.24' started
2008-05-05 18:24:09,440 DEBUG Using 'DistUpgradeViewKDE' view
2008-05-05 18:24:09,486 DEBUG enable dpkg --force-overwrite
2008-05-05 18:24:09,559 DEBUG lsb-release: 'gutsy'
2008-05-05 18:24:09,559 DEBUG _pythonSymlinkCheck run
2008-05-05 18:24:10,177 WARNING dpkg interrupted, calling dpkg --configure -a
2008-05-05 18:24:12,173 ERROR not handled expection in KDE frontend:
Traceback (most recent call last):

  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/dist-upgrade.py", line 60, in <module>
    app.run()

  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeController.py", line 1550, in run
    self.fullUpgrade()

  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeController.py", line 1425, in fullUpgrade
    if not self.prepare():

  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeController.py", line 346, in prepare
    self.openCache()

  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeController.py", line 209, in openCache
    self._view.getOpCacheProgress())

  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeCache.py", line 51, in __init__
    raise CacheExceptionDpkgInterrupted, e

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

2008-05-05 18:24:12,173 DEBUG running apport_crash()
2008-05-05 18:24:12,189 ERROR failed to import apport python module, can't report bug: No module named python_hook

And I couldn't get any /var/log/dist-upgrade/apt.log
so I can only give what came up on /var/log/dist-upgrade/

2008-05-05 18:24:08,912 INFO release-upgrader version '0.87.24' started
2008-05-05 18:24:09,440 DEBUG Using 'DistUpgradeViewKDE' view
2008-05-05 18:24:09,486 DEBUG enable dpkg --force-overwrite
2008-05-05 18:24:09,559 DEBUG lsb-release: 'gutsy'
2008-05-05 18:24:09,559 DEBUG _pythonSymlinkCheck run
2008-05-05 18:24:10,177 WARNING dpkg interrupted, calling dpkg --configure -a
2008-05-05 18:24:12,173 ERROR not handled expection in KDE frontend:
Traceback (most recent call last):

  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/dist-upgrade.py", line 60, in <module>
    app.run()

  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeController.py", line 1550, in run
    self.fullUpgrade()

  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeController.py", line 1425, in fullUpgrade
    if not self.prepare():

  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeController.py", line 346, in prepare
    self.openCache()

  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeController.py", line 209, in openCache
    self._view.getOpCacheProgress())

  File "/tmp/kde-yra/adept_updaterPWVHDa.tmp-extract/DistUpgradeCache.py", line 51, in __init__
    raise CacheExceptionDpkgInterrupted, e

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

2008-05-05 18:24:12,173 DEBUG running apport_crash()
2008-05-05 18:24:12,189 ERROR failed to import apport python module, can't report bug: No module named python_hook

I really hope you can make any sense of that.... because I can't!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
agostinomaurotto (agostino-maurotto) said :
#1

same happened to me upgrading from Gutsy to Hardy,
rebooting led me to a machine on which was impossible to issue sudo.
I had to reboot in root by the maintenance mode, then dpkg --configure -a apt-get -f install, and i was back with the working system.
However i had to manually remove the packages that ended in obsolete since the system didn't do.
Of my upgrades from 6.10 to 7.04 then 7.10 and now 8.04..this has been the worst one
with 4 machines having problems upgrading
most of them with fresh gutsy install...
in all cases i had to manually fix problems regarding ati drivers, compiz, sudo, and policykit.

Revision history for this message
Michael Vogt (mvo) said :
#2

Thanks for your bugreport.

This usually happens when dpkg was interrupted (e.g. power failure) while it was working. Please open a terminal window (konsole) and run:
$ sudo dpkg --configure -a

and retry the upgrade.

Thanks,
 MIchael

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

Hello

To correct this problem just open Terminal (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.

Then to dress pending packages please type:

sudo apt-get install -f

Then retry to update and/or to install desired package

Regards

Bhavani Shankar.

Revision history for this message
roberto_loretti@hotmail.com (roberto-loretti) said :
#4

Thanks very much Michael Vogt !!!!!!!!
i was upgrading some packages online and my system crashed.i have ubuntu 7.10.so couldnt install update or upgrade anything for about 4 weeks.
after running : sudo dpkg --configure -a my problem was solved.

thank you!
Rob

Revision history for this message
Warwick Greenham (mytrill) said :
#5

I have tried the answer you gave, error said could not find command, this was for both suggested fixes, so now I take it that rebooting in root maintenance mode is recovery mode, and terminal and type sudo dpkg--configure-a and sudo apt-get install-f. Am I on the right track.
Thanks Warwick.

Revision history for this message
DEEPAK (bhaskar-deepak2003) said :
#6

does the problem is has adifferent solution if ubuntu(8.10) is installed inside windows as in my case please help me out

Revision history for this message
rayhoskins (ray-hoskins) said :
#7

I have tried it too. Have the same issue. Look forward to a solution. It doesn't recognize either the configure-a or get install-f commands

Revision history for this message
ruth axtell (cutler207) said :
#8

i have the same problem as the last 2 on the list, but I don
t see an answer. how do i resolve this if my computer doesn't recognize the command?

Can you help with this problem?

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

To post a message you must log in.