2

Cause:

I did the mistake of upgrading my system's (Ubuntu 20.04.6 LTS) python version from 3.10 to 3.12.

Issue:

Since then, my terminal wouldn't open.

And when opening a virtual terminal (CTRL+ALT+F3) it first displays ModuleNotFoundError: No module named 'apt__pkg', and then it (the virtual terminal) keeps on working normally.

Attempted solutions

I tried leaving python3.10 as the only python-alternatives and tried adding other alternatives (python3.8), but the issue persists.

I added alias python='usr/bin/python3' to my .bashrc

I commented the export $PATH=... by anaconda

The only installed version right now is 3.10.6. python -V as well as python3 -V give 3.10.6

I did as the comments suggested (reverting to 3.8) since it is the actual default for FocalFossa

Toolchain Upgrades ️

Ubuntu 20.04 LTS comes with [...] Python 3.8.2, [...].

Source: FocalFossa/ReleaseNotes

But the terminal still doesn't work.


Figures:

Recovery mode

recovery

Updates

updates

.bashrc

.bashrc

python -V

python -V

update-alternatives

update-alternatives


Not duplicate of this, because: links

0 Answers0