I just upgraded from Ubuntu 21.10 to Ubuntu 22.04. Everything perfect except for python. Python 3.11 or 3.10 broke my python scripts. In my struggle I think i damaged the system and now I have mess: I seem to have all 3.9, 3.10, 3.11 and cannot open a terminal etc... Can you please help? Many thanks for reading. Best regards, Zuheyr
Asked
Active
Viewed 1.3k times
-1
2 Answers
0
If you have scripts that require an older version of Python and/or certain versions for specific modules and there are no packages to remedy this, your best bet—at least as a temporary workaround—is to ensure that said scripts work in a separate environment. One possible building block which I use myself is pyenv (Simple Python version management).

Markus Ueberall
- 551
apt autoremove'? Also try doing a update one more time as in
sudo apt-get update && sudo apt-get upgrade && sudo apt autoremove' So system automatically update, upgrade & remove all packages as needed – Aravinth Apr 25 '22 at 15:59