Ubuntu – How to get the terminal to work again? Terminal stopped working after changing default python version

18.04command linepython-2.7python3

I was trying to make python version 3 as a default version of Ubuntu,

I used nano ~/.bashrc and added the first line of this answer.

enter image description here
Then It just messed up my terminal.
Now when I am clicking on my Terminal or trying to access by ctrl+alt+t, the terminal does open/run. I can only talk to ubuntu using my terminal how could I fix this?

Please advise!

Pls, note that the terminal icon is present, but the terminal does not open when clicked on. How do I get the terminal to open and work?

Update: I deleted that line from .bashrc. However, I still have a problem opening my terminal. I also see this sign on my ubuntu as well.

enter image description here

saying: a problem occurred when checking for the updates ubuntu 18.04

Best Answer

sudo apt-get --reinstall install python3-minimal 

I too tried many things, but this simple thing solved my issue.

Related Question