4

Recently, I updated my ubuntu version to 22.10. I researched online to install python old version in ubuntu 22.10.

sudo add-apt-repository ppa:deadsnakes/ppa This command does not work 22.10. How can I install old python version? Why I am going to install python old version is, already installed pgadmin is not working in Ubuntu 22.10 and solution is to install old python version according to my research. It will be better how pgadmin can work again.

Yery cs
  • 153
  • 3
    That PPA only support 18.04, 20.04 and 22.04. It doesn't support 22.10 and never will. You shouldn't mess with the system's python anyway or you'll break pretty much everything that relies on it, i.e. a huge part of the OS including apt. Some reading: https://unix.stackexchange.com/questions/565403/how-to-prove-installing-different-python-version-wont-interfere-with-the-system – ChanganAuto Oct 26 '22 at 16:50
  • 1
    Hi @ChanganAuto. Why pgadmin does not support 22.10 and will not? And what is the solution for pgadmin? – Yery cs Oct 26 '22 at 17:51
  • PPAs support the releases their maintainers decide to support, that's all. In the case of the "deadsnakes" PPA it's easy to see they intend to support LTS only. So, if still maintained then, the next expected release to have support will be 24.04 (April 2024). 22.10, 23.04, 23.10 will occur before 24.04 but they AREN'T Long Term Support releases. – ChanganAuto Oct 26 '22 at 17:57
  • Oh, then should I wait until April 2024, if I don't install OS again? – Yery cs Oct 26 '22 at 18:24
  • No. Please read the answer. – ChanganAuto Oct 26 '22 at 19:00

1 Answers1

5

You may find it useful to use pyenv to manage different python versions on one host.

Basic GitHub checkout installation method in README section works pretty well for linux distributions.

After that, you will be able to install different python versions with pyenv install <version>, set some local python interpreter for the directory with pyenv local <version>, global one with pyenv global <version>