Update-Manager crash on update "OSError: [Errno 2] no file or directory: './modaliases'"

Bug #364090 reported by Donovan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: update-manager

If i try to make the update from Intrepid (8.10) to Jaunty, on the partial update it exit with this error:

**********************************
ERROR:root:not handled expection:
Traceback (most recent call last):

  File "/usr/bin/update-manager", line 89, in <module>
    controler.doPartialUpgrade()

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeController.py", line 1468, in doPartialUpgrade
    if not self.doPostInitialUpdate():

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeController.py", line 608, in doPostInitialUpdate
    self.quirks.run("PostInitialUpdate")

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeQuirks.py", line 66, in run
    func()

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeQuirks.py", line 135, in intrepidPostInitialUpdate
    not self._supportInModaliases("fglrx")):

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeQuirks.py", line 89, in _supportInModaliases
    for filename in os.listdir(modaliasesdir):

OSError: [Errno 2] Nessun file o directory: './modaliases'

ERROR:root:failed to import apport python module, can't report bug: No module named python_hook
*************************************
Update-manager package is ver. 1:0.93.35

I've tried too:

- creating the directory ./modaliases in /usr/lib/python2.5/site-packages/DistUpgrade/
- inserting also this directory on the Python file in /usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeQuirks.py on line 89
- enabling apport in this file /etc/default/apport (with echo enable=1)

But it always stops and i get new errors:

*********************************
ERROR:root:not handled expection:
Traceback (most recent call last):

  File "/usr/bin/update-manager", line 89, in <module>
    controler.doPartialUpgrade()

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeController.py", line 1468, in doPartialUpgrade
    if not self.doPostInitialUpdate():

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeController.py", line 608, in doPostInitialUpdate
    self.quirks.run("PostInitialUpdate")

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeQuirks.py", line 66, in run
    func()

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeQuirks.py", line 135, in intrepidPostInitialUpdate
    not self._supportInModaliases("fglrx")):

  File "/usr/lib/python2.5/site-packages/DistUpgrade/DistUpgradeQuirks.py", line 103, in _supportInModaliases
    logging.debug("checking for %s support in modaliases but none found" % xorgdriver)

UnboundLocalError: local variable 'xorgdriver' referenced before assignment
************************************

I noted also some similar bugs like the #335416 but without any working solution for this problem.

Donovan (donovan2014)
Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Atis (ubuntu-atis) wrote :

I had exactly the same problem, and I also tried creating dir "modaliases".

However, I looked around filesystem and found that there's /tmp/tmp1AYBN/modaliases which was probably created by update manager when I first attempted to upgrade from 8.10 to 9.04

I copied all the files:

cp /tmp/tmp1AYBN/modaliases/* ~/modaliases

And it worked.

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.