[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:05:03 UTC 2013


I'm guessing the solution in general should be to check if the symbolic
link points to a file or to a symbolic link and keep following the links
until a file is reached (unless the symlinks point around in a circle
somehow)

ls /etc/alternatives
...
lrwxrwxrwx   1 root root    62 Jul  5 22:25 policytool.1.gz -> /usr/lib/jvm/java-7-openjdk-amd64/jre/man/man1/policytool.1.gz
lrwxrwxrwx   1 root root    18 Oct 18 11:39 python -> /usr/bin/python2.7
lrwxrwxrwx   1 root root    12 Jul  5 17:02 rcp -> /usr/bin/scp
...

-- 
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