Skip to content

ubuntu Error : update-alternatives: --install needs <link> <name> <path> <priority> #59

Answered by rehanhaider
Sir-Osama asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Sir-Osama , notice the 1 & 2 at the end of the lines. you need to keep them while executing these.

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2

After that run the below and choose the selection that you want as default.

sudo update-alternatives --config python3

Let me know if this solves your issue and please star the repository if this was helpful 🙂

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@Sir-Osama
Comment options

@rehanhaider
Comment options

@Sir-Osama
Comment options

Answer selected by rehanhaider
Comment options

You must be logged in to vote
3 replies
@Sir-Osama
Comment options

@rehanhaider
Comment options

@Sir-Osama
Comment options

Comment options

You must be logged in to vote
2 replies
@K2AAE
Comment options

@rehanhaider
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants