1

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?

Kulfy
  • 18,154

2 Answers2

0

Open the terminal and type:

sudo apt-get install --reinstall python3-all
sudo apt purge python3.8  
sudo apt-get install --reinstall update-manager  
sudo apt update
karel
  • 122,292
  • 133
  • 301
  • 332
0

User Christian commented in Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink that /usr/bin/python3 needs to point to /usr/bin/python3.6. The command you want is:

sudo ln -fs /usr/bin/python3.6 /usr/bin/python3
Viet Than
  • 171