I accidentally overridden /usr/bin/python
and /usr/bin/python2
to /usr/bin/python3.8
and now I'm not able to reinstall and install anything because I get this error when using apt
ModuleNotFoundError: No module named 'apt_pkg'
.
I tried to reinstall python-minimal
, python2.7
but without success.
I also tried to remove the python2.7
but I can't do that either because it depends on libgda
which I cannot install either because my system does not recognize Python2.7
.
Any idea how can I restore the old version of Python?