Jordan.M
Jordan.M

Reputation: 125

I can't open terminal on ubuntu 16.04 after python3 installation

I have a big problem; I tried to install python 3 on ubuntu 16.04 but after installation my terminal does't open anymore. And then I try to remove python but the problem is still here. I opened xterm and i tried to launch gnome-terminal but I have this error:

"bash: /usr/bin/gnome-terminal: /usr/bin/python3 :FIle o directory does't exist"

I think there is some problem with different version of python on my pc but I can't find a solution. Someone can help me ? thanks

Upvotes: 2

Views: 10558

Answers (2)

siddharth15
siddharth15

Reputation: 21

I face the same problem after I tried to remove python 2 using terminal. I came up with a unusual solution. Go to any folder on desktop. Right click and select "Open in Terminal" Terminal will be opened. To go to home directory, type cd and hit enter.

This is just a temporary solution. If this doesn't works, its better to install the Ubuntu again.

Upvotes: 2

Andrey Pichujkov
Andrey Pichujkov

Reputation: 1

Use the following steps to sort the issue out:

sudo apt install dconf-cli
dconf reset -f /org/gnome/terminal
sudo apt-get remove gnome-terminal
sudo apt-get install gnome-terminal
sudo locale-gen --purge
sudo dpkg-reconfigure locales
reboot

Upvotes: -1

Related Questions