Update to 12.04.1 via UpdateManager crash

Asked by Scott Langley on 2012-08-24

So I tried updating my 10.04 LTS to 12.04.1 LTS using the UpdateManger application. It crashed during the "Clean up" phase - meaning the updater program went away and I was returned to my Ubuntu desktop.

Below is the end of the /var/log/dist-upgrade/main.log file which I assume describes the problem.

But what do I do next?



2012-08-24 03:15:51,310 DEBUG Start checking for obsolete pkgs
2012-08-24 03:15:57,759 DEBUG package 'liblzma1' has unwanted removals, skipping
2012-08-24 03:15:58,143 WARNING _tryMarkObsoleteForRemoval failed for 'liblzma1' (SystemError('E:Error, pkgProble
mResolver::Resolve generated breaks, this may be caused by held packages.',): E:Error, pkgProblemResolver::Resolv
e generated breaks, this may be caused by held packages.)
2012-08-24 03:15:58,595 ERROR not handled expection:
Traceback (most recent call last):

  File "/tmp/tmpchF2gB/precise", line 7, in <module>

  File "/tmp/tmpchF2gB/DistUpgradeMain.py", line 226, in main
    if app.run():

  File "/tmp/tmpchF2gB/DistUpgradeController.py", line 1721, in run
    return self.fullUpgrade()

  File "/tmp/tmpchF2gB/DistUpgradeController.py", line 1703, in fullUpgrade

  File "/tmp/tmpchF2gB/DistUpgradeController.py", line 1208, in doPostUpgrade
    if not self.cache.tryMarkObsoleteForRemoval(pkgname, remove_candidates, self.foreign_pkgs):

  File "/tmp/tmpchF2gB/DistUpgradeCache.py", line 204, in wrapper
    res = f(*args, **kwargs)

  File "/tmp/tmpchF2gB/DistUpgradeCache.py", line 978, in tryMarkObsoleteForRemoval

  File "/tmp/tmpchF2gB/DistUpgradeCache.py", line 317, in restore_snapshot

  File "/usr/lib/release-upgrader-python-apt/apt/deprecation.py", line 98, in deprecated_function
    return func(*args, **kwds)

  File "/usr/lib/release-upgrader-python-apt/apt/package.py", line 1245, in mark_delete

SystemError: E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

2012-08-24 03:15:58,596 DEBUG running apport_crash()
2012-08-24 03:15:58,611 ERROR failed to import apport python module, can't report bug: No module named apport.report
2012-08-24 03:16:00,473 DEBUG enabling apt cron job

Question information

English Edit question
Release Upgrader Edit question
No assignee Edit question
Last query:
Last reply:

Try booting to root recovery mode and run:

 sudo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a

Can you help with this problem?

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

To post a message you must log in.