dist-upgrade to edgy failed on gnome-app-install (because of locally installed /usr/local/bin/python2.5)

Bug #67067 reported by Jim Garrison
6
Affects Status Importance Assigned to Milestone
gnome-app-install (Ubuntu)
Fix Released
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/dist-upgrade/
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/dist-upgrade/
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/dist-upgrade/ in the bugreport.

installArchives() failed

Revision history for this message
Jim Garrison (garrison-gnomoradio) wrote :
Revision history for this message
Jim Garrison (garrison-gnomoradio) wrote :
Revision history for this message
Jim Garrison (garrison-gnomoradio) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

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.

Changed in update-manager:
assignee: nobody → mvo
importance: Undecided → High
status: Unconfirmed → Needs Info
Revision history for this message
Jim Garrison (garrison-gnomoradio) wrote :

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.

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

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
Michael Vogt (mvo)
Changed in gnome-app-install:
status: Confirmed → Fix Committed
Michael Vogt (mvo)
Changed in gnome-app-install:
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.