I wanted to upgrade my Ubuntu 18.04 to 20.04. When I try to do that I got the following error:
Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink.
I've looked for solutions, and I found it can be solved by:
sudo rm /usr/bin/python3 && sudo ln -s /usr/bin/python3.8 /usr/bin/python3
do-release-upgrade
but when I do that I got:
bash: /usr/bin/do-release-upgrade: /usr/bin/python3: bad interpreter: No such file or directory
The output of type -a python3; file /usr/bin/python3
is:
bash: type: python3: not found /usr/bin/python3: broken symbolic link to /usr/bin/python3.8
And the output of file /usr/bin/python3.6
is:
/usr/bin/python3.6: cannot open `/usr/bin/python3.6' (No such file or directory)
What should I do?