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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1241465 Title: do-release-upgrade fails when using update-alternatives to provide different versions of /usr/bin/python To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1241465/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
