dist-upgrade to edgy failed on gnome-app-install (because of locally installed /usr/local/bin/python2.5)
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | gnome-app-install (Ubuntu) |
High
|
Michael Vogt | ||
Bug Description
Binary package hint: update-manager
Could not install 'gnome-app-install'
The upgrade aborts now. Please report this bug against the
'update-manager' package and include the files in /var/log/
in the bugreport.
subprocess post-installation script returned error exit status 1
Could not install 'ubuntu-desktop'
The upgrade aborts now. Please report this bug against the
'update-manager' package and include the files in /var/log/
in the bugreport.
dependency problems - leaving unconfigured
Could not install the upgrades
The upgrade aborts now. Your system could be in an unusable state. A
recovery was run (dpkg --configure -a).
Please report this bug against the 'update-manager' package and include
the files in /var/log/
installArchives() failed
| Jim Garrison (garrison-gnomoradio) wrote : | #1 |
| Jim Garrison (garrison-gnomoradio) wrote : | #2 |
| Jim Garrison (garrison-gnomoradio) wrote : | #3 |
| Michael Vogt (mvo) wrote : | #4 |
| Changed in update-manager: | |
| assignee: | nobody → mvo |
| importance: | Undecided → High |
| status: | Unconfirmed → Needs Info |
| Jim Garrison (garrison-gnomoradio) wrote : | #5 |
Both commands work perfectly with no output.
However, I think we have found the culprit possibly nonetheless.
At the time of installation, I had python2.5 installed in /usr/local/bin because I simply could not wait for edgy to be released. So if, at any point in the install process, a script ran "/usr/bin/env python", it would have invoked my python in /usr/local/bin, which does not contain xdg in its path.
| Michael Vogt (mvo) wrote : | #6 |
Thanks for this additional information. I will change the package to use /usr/bin/python explicitely to avoid this problem in for other users.
| Changed in pyxdg: | |
| status: | Needs Info → Confirmed |
| Changed in gnome-app-install: | |
| status: | Confirmed → Fix Committed |
| Changed in gnome-app-install: | |
| status: | Fix Committed → Fix Released |


Thanks for your bugreport.
Can you please run:
$ python -c 'import xdg.DesktopEntry'
$ python -c 'import xdg'
and tell me what it prints? It looks like (even though python-xdg is configured by dpkg before it is used) for some reason it is not usable.