[Bug 1241465] Re: do-release-upgrade fails when using update-alternatives to provide different versions of /usr/bin/python
Daniel Ricao Canelhas
1241465 at bugs.launchpad.net
Fri Oct 18 13:54:23 UTC 2013
so, in /DistUpgrade/DistUpgradeController.py
after line 381, inserting something like this would possibly patch this
bug:
while os.path.islink(fs_default_version) :
fs_default_version = os.readlink(fs_default_version)
It would be an endless loop if links are circular though. Adding a counter for a maximum depth is one way out...
Another would be to add the visited links to a list and checking it to see if the current link is already in the list. If so. break and return an error of some sort. But it would be a very unusual configuration to find.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1241465
Title:
do-release-upgrade fails when using update-alternatives to provide
different versions of /usr/bin/python
Status in “ubuntu-release-upgrader” package in Ubuntu:
New
Bug description:
sudo do-release-upgrade
fails to upgrade 13.04 to 13.10 when update-alternatives is used to
maintain different versions of python
e.g.
sudo update-alternatives --list python
/usr/bin/python2.7
/usr/bin/python3.3
The script complains that the symlink to /usr/bin/python is broken
regardless of which version is being used to provide python
a workaround is to remove the symbolic link
`sudo rm /usr/bin/python`
and creating it manually
`sudo rm /usr/bin/python`
`sudo ln -s /usr/bin/python2.7 /usr/bin/python`
`sudo do-release-upgrade`
Apparently using version 3.3 didn't work too well either.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: ubuntu-release-upgrader-core 1:0.205
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic x86_64
ApportVersion: 2.12.5-0ubuntu2
Architecture: amd64
CrashDB: ubuntu
Date: Fri Oct 18 11:42:03 2013
MarkForUpload: True
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: release-upgrade
UpgradeStatus: Upgraded to saucy on 2013-10-18 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1241465/+subscriptions
More information about the foundations-bugs
mailing list