1

I have installed Python 3.7.9 and made it my default. I also changed the graphics card to NVIDIA, but now I can't open the terminal, neither using the Ctrl+Alt+T shortcut nor by pressing on the icon. I can still, however, open it from any folder.

Also, my system freezes when I open Settings.

When I try to add the repo for the drivers I get the error:

ModuleNotFoundError: No module named 'apt_pkg'

Is there any solution to this mess?

I tried many solutions mentioned here and there, but none of them worked with my case so far.

Thanks in advance.

Bilal
  • 305
  • 1
  • 4
  • 15
  • 5
    Revert your Python defaults to 2.7.12 and 3.5.1, which is what your Ubuntu 16.04 system was designed to work with. You can have other versions installed...but those other versions should not be the default. – user535733 Sep 13 '20 at 21:39
  • Could you share what have you tried? – schrodingerscatcuriosity Sep 13 '20 at 21:41
  • Can you explain how you installed Python 3.7.9 (how you remove this will depend on how you installed it). Have you tried sudo apt install --reinstall python python3. – Kurankat Sep 14 '20 at 02:14
  • @user535733 how can I do that without re-installing the OS again? Revert your Python defaults to 2.7.12 and 3.5.1 – Bilal Sep 15 '20 at 05:12
  • @schrodigerscatcuriosity I tried the solutions mentioned in these answers : First, Second, Third, and also dconf reset -f /org/gnome/control-center/. – Bilal Sep 15 '20 at 05:21
  • How you fix the problem depends upon how you created the problem. Your question does not include the steps you followed to install Py3.7.9 and the steps you followed to make it the default version of Python3. – user535733 Sep 15 '20 at 13:00
  • @Kurankat I did, but it didn't work with me. – Bilal Sep 16 '20 at 15:22

0 Answers0