When trying to do “do-release-upgrade” from current Ubuntu 18.04 to new 19.04 I am getting error
"Your python3 install is corrupted. Please fix the ‘/usr/bin/python3’ symlink "
I currently have python 2.7, 3, 3.6 and 3.7 installed.
Please advise what shall i try. Thanks
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
i had the same problem with my python3 installation because i installed an alternative version. the default that came with ubuntu 18.04 was python3.6 and i had installed 3.7 & 3.8 and when ever i wanted to switch to the specific version i would use use
update-alternative
command. the issue with process is that it alters the default python3 simlink to point to the alternative installation path fromto
and the system expects that the first not the second even the terminal wouldn’t work so to restore to the default,
and after that if you check your python3 symlink path
ls -la /usr/bin/python3.6
and it should point to the old (default)
/usr/bin/python3.6
good luck and hope this helps.
Any update? I have manually install python2.7 and python3.7 after deleting the executable accidentally.
Seems i have done something to python. Now when i try
sudo apt upgrade
,i get
Hello,
I believe this is a know issue, you can also check this in the following report in the launchpad bugs forum:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1825655
The suggested workaround is to remove the python’s binary in /usr/bin and then to create a symlink and perform the upgrade:
and then perform the upgrade
I would also recommend you to backup your droplet in case something goes wrong, however you will simply remove the binary file from the /usr/bin and then create a symlink to replace it.
Let me know how it goes.
Alex