Skip to content

Instantly share code, notes, and snippets.

@cobaohieu
Last active June 11, 2025 05:45
Show Gist options
  • Select an option

  • Save cobaohieu/9654c9b05edd6bcfce1965e9f5cec195 to your computer and use it in GitHub Desktop.

Select an option

Save cobaohieu/9654c9b05edd6bcfce1965e9f5cec195 to your computer and use it in GitHub Desktop.
fix Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink.

sudo apt install --reinstall python3

sudo apt install --reinstall python

sudo update-alternatives --remove-all python

sudo update-alternatives --remove-all python3

sudo ln -sf /usr/bin/python2.7 /usr/bin/python

sudo ln -sf /usr/bin/python3.6 /usr/bin/python3

@dnintzeli
Copy link
Copy Markdown

Worked! Thank you!

@mgberg
Copy link
Copy Markdown

mgberg commented Mar 14, 2024

Very helpful!

@Zackhardtoname
Copy link
Copy Markdown

I used 3.5 for 16.04

@michaelgrafl
Copy link
Copy Markdown

Thanks!

@Zer0x00
Copy link
Copy Markdown

Zer0x00 commented Feb 7, 2025

It's 3.10 for 22.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment