I want to update python3 to version 3.9, I ran
sudo apt update
sudo apt install software-properties-common
sudo -E add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.9
sudo update-alternatives --config python3
. All of which were successful apart from the last command. It gives update-alternatives: error: no alternatives for python3
.
Can somebody tell me what I am missing?
Thanks!
sudo apt install python3.9
should have failed: You didn't run another apt update after adding the PPA, so apt wouldn't know of the newly available packages. Check your apt log.python3.9
should never be an alternative.python3
should be an alternative. The command you pasted says you're running config onpython3
, yet it shouldn't complain forpython3.9
unless you typedpython3.9
there. Are you sure you ran the proper update-alternatives command?