Another way to solve the problem that the terminal terminator cannot be opened by the shortcut key after Ubuntu 16.04 upgrades python3

written in front

I saw that many mainstream methods on the Internet are to enter in the terminator

gnome-terminal

Then there will be two kinds of errors,
one is: No module named "apt_pkg",
the other is: ImportError: cannot import name '_gi'.

There are many articles, here is one post:
Ubuntu 16.04 upgrade python3.6 and solve the bug that the terminal cannot be opened.
Introduce how to upgrade to python3.6 and how to solve the problem that the shortcut key to open the terminal fails after the upgrade

At the beginning, I had the second type, and after copying the files, it still didn’t work out. I messed around the next day, and found that when I entered gnome-terminal again, it was
failed to connect to Mir: failed to connect to server socket …
… Online No solution found, final GG ==


another way

Reference link: Solve the following problems when the Terminator cannot be run: File "/usr/bin/terminator"...SyntaxError: invalid syntax
Thanks for the help of Daniel, I hope more people can see it again.

In fact, when the shortcut key fails, an error will appear. Don’t rush to turn it off. There is a button that will display the details, and there will be a lot of reports. If you look carefully, there will be a sentence:
except (KeyError,ValueError), ex:
^
SyntaxError : invalid syntax
There is a link for the specific error, but you will find that it is read-only when you open the file, so here is one more point:
because the file /usr/bin/terminator is read-only by default, we can right-click on the desktop to open the terminal, and then enter: sudo gedit /usr/bin/terminator can open and modify the first line

#! /usr/bin/python

for

#! /usr/bin/python2

Although there will be some warnings after saving ==, but regardless of him hhh
and then use the shortcut key (set the shortcut key location: System Settings -> Keyboard -> Shortcut Key -> Launcher -> Start Terminal) to open the terminator up.

Guess you like

Origin blog.csdn.net/Only_Wolfy/article/details/100173006