Ubuntu – How to solve the error “Failed to launch Terminal” after upgrading python

18.04command linegnome-terminalpython

How to solve the error "failed to launch Terminal" failed to execute child process GNOME-Terminal ( No such file or directory ) ? Please HELP us to solve this error. Currently I have upgraded Python to 3.7 version.

I have tried opening by clicking Alt+F2 and entered "gnome-terminal" but that too failed.

I tried "sudo apt-get purge gnome-terminal" in a shell opened on clicking "Ctrl + Alt + F3" keys which removed my terminal from the system

And then ran "sudo apt-get install gnome-terminal", I got terminal back but with the same error.

Best Answer

After many attempts,

I found the cause of issue. Python upgraded to version 3.7 and lost its version 3.5

sudo apt-get install python3.5

Above command installed python 3.5 which is used to run terminal by Ubuntu 18.04 by default.

Note:

Uninstalling Python 3.5 causes removal of terminal, desktop, firefox and some applications in Ubuntu.

Better don't do it.

Carefully upgrade/install python versions.

Related Question