Installing python3.10 on Ubuntu23.04, alongside with python3.11 causes apt crash
I need to use python3.10 on Ubuntu23.04.
I’ve tried to install python3.10 on Ubuntu23.04, alongside with python3.11. And, it looks like it has been installed.
But, python3.10-venv didn’t.
Than I’ve tried to switch versions and try install python3.10-venv again, working under python3.10, and looks like they have been switched.
But, with python3.10 i have not-working package manager
(looks like python3.11 is used in 23.04 system components).
I’ve tried to sudo add-apt-repository ppa:deadsnakes/ppa
, working under python3.11 (bc apt doesn’t work with python3.10 in current situation), but soon i realised,
that deadsnakes doesn’t support Ubuntu 23.04 for now.
So, is there any variants how to install fully working python3.10 alongside with python3.11 on Ubuntu23.04, with working package manager?
Using python3.11 as default and compiling python3.10 from source with adding the usr/local/bin to PATH and updating alternatives for python (with setting python3.11 as default) solved the problem for me.