exec error in DistUpgradeControler

Bug #84915 reported by Rachael
4
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: update-manager-core

Running an x86_64 feisty install (originally upgraded from edgy) on a laptop. While installing updates this morning, the upgrade manager warned me that there it needed to do a distribution upgrade because some updates couldn't be installed. As there was a linux kernel (I think) update in there, this wasn't terribly shocking. When I clicked the Distribution Upgrade, I got this error:

   controler = DistUpgradeControler(view, datadir=data_dir)

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeControler.py", line 127, in __init__
    if self.options.mode == "server":

AttributeError: 'NoneType' object has no attribute 'mode'

I then got as many things to install normally as possible (possibly stupid) and tried again with the same error. I then changed the .py file to change the "if self.options.mode == "server"" line to read:

        if not self.options and self.options != None and self.options.mode == "server":

and the distribution upgrade could be re-run without errors. (I do not know python hardly at all, so my changes here are probably not "right").

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

Thanks for your bugreport.

This is fixed in my local tree and will be part of the next upload.

Changed in update-manager:
importance: Undecided → High
status: Unconfirmed → Fix Committed
Michael Vogt (mvo)
Changed in update-manager:
status: Fix Committed → Fix Released
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.