I was upgrading from 13.10 to 14.04 (dev for now, stable in a few hours) using do-release-upgrade
and encountered the following problem:
Can not upgrade
Your python install is corrupted. Please fix the '/usr/bin/python' symlink.
I solved the problem after messing around a bit, so I'd like to share my solution here. Hope this could help someone.
/etc/alternatives/python
symlinked to/usr/bin/python2.7
? did something else has higher priority? – heemayl Jun 19 '15 at 16:34/usr/bin/python2.7
is the actual binary, it should never be the symlink, the symlink is the/etc/alternatives/python
..do you mind checking it again? – heemayl Jun 19 '15 at 17:31/usr/bin/python
is a symlink to/etc/alternatives/python
(of course/usr/bin/python2.7
is the binary, but that's not the problem here). – 4ae1e1 Jun 19 '15 at 17:33/etc/alternatives/python
is then symlinked to whatever you selected (not necessarily/usr/bin/python2.7
— why would you even needupdate-alternatives
in that case?), but the point is symlinking is not allowed for/usr/bin/python
when youdo-release-upgrade
. – 4ae1e1 Jun 19 '15 at 17:34