After switching from Python 3.10 to Python 3.8, Ubuntu terminal cannot be opened?

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Please provide the version of the system here:

self

Please describe your issue below:

   update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
python3 --verdion
Python 3.8.20

Experiment:
cp /usr/lib/python3/dist-packages/gi/_gi_cairo.cpython-310-aarch64-linux-gnu.so ./_gi_cairo.cpython-38-aarch64-linux-gnu.so
cp /usr/lib/python3/dist-packages/gi/_gi.cpython-310-aarch64-linux-gnu.so ./_gi.cpython-38-aarch64-linux-gnu.so

But it is Unsuccessful.

Please help!

@Lexus with linux systems, it’s advised to not disturb the system python version and python packages as many parts of the system depend on the specific python versioning to operate, most likely your installation is broken, you can switch to Framebuffer mode: ctrl + alt + f3
and reinstall the python3 package hopefully fixing it, if not you may need to reinstall your system entirely.

In the future please consider using python venv if you need to use python environment with different versioning: 12. Virtual Environments and Packages β€” Python 3.13.0 documentation for your reference

cheers

2 Likes