Skip to content

Instantly share code, notes, and snippets.

@tspannhw
Forked from cobaohieu/fix-os-upgrade.md
Created May 10, 2024 15:47
Show Gist options
  • Select an option

  • Save tspannhw/832e35eca5b4fddebbd8348e38206cd6 to your computer and use it in GitHub Desktop.

Select an option

Save tspannhw/832e35eca5b4fddebbd8348e38206cd6 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

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