10

After upgrading from 17.10 to 18.04 I can't open a terminal by any method.

After reinstalling and updating the problem is still unsolved.

What can I do to fix this?

15

This mostly happens if the language setting on your system got messed up, to fix this simply re-set your language settings (see Screenshot).

enter image description here

After this your terminal should work as expected.

| improve this answer | |
  • 1
    The question here: What does make the system to mess or loss the language settings? This is usually happens with me randomly! – SaidbakR Nov 5 '18 at 18:22
  • The answer is very correctable to fix the issue of the terminal. but after this solution getting another problem sound is not working of pc – Soyab Badi Oct 15 '19 at 9:14
5

Open XTerm and run the following code

  1. sudo locale-gen
  2. sudo localectl set-locale LANG="en_US.UTF-8"

And then reboot

| improve this answer | |
  • How do you open XTerm? My terminal has gone too, but alt-f2 says xterm not installed. – user1773592 Dec 10 '19 at 18:12
4

This fix seemed to work for me. But did not survive a reboot.

When running localectl some entries showed as "n/a" - this seems to be key.

Any command-line activity can be run in xterm (Alt-F2, xterm).

Actual fix (for me):

  1. Make sure /etc/locale.conf has your locale(s) uncommented.
  2. Run locale-gen.
  3. Run localectl set-locale LANG="en_US.UTF-8" (or you LANG value)
  4. Run localectl to see if anything remains set to "n/a"
  5. In my case, run localectl set-keymap "us"
  6. Logout, login - now Terminal works.

(Credits to this thread: https://bbs.archlinux.org/viewtopic.php?id=180103)

| improve this answer | |
  • He will have problem to run your steps, without terminal, it's impossible to run your commands line after step 2 – damadam Aug 30 '18 at 6:41
  • @damadam I have modified my comment to add that xterm works for these changes - thanks for catching that. That said, if the original steps are followed - terminal will be available until reboot to make my changes. – Nigel Brownjohn Sep 10 '18 at 14:01
  • You can also run these commands from a physical console... press e.g. Ctrl-Alt-F1 to get to a physical console. Press Alt-F7 (typically) to go back to the graphical console. – jlp Aug 20 '19 at 14:12
1

So I came across the same issue and no language settings seemed to help. Turnout the issue was with my PPA. I had recently upgraded my python3 to 3.7.5 from 3.6. This would have been fine but then I make my default python3 to be 3.7 which made some issues. So the solution to this is: Run this command

 sudo gedit /usr/bin/gnome-terminal

and than change #! /usr/bin/python3 to #! /usr/bin/python3.6 This seems to solve my isuue. Thanks!

| improve this answer | |
  • Never use sudo in combination with grafical programs. It is pkexec your program or sudo -H your program. It would be better to set python3 version back to the ubuntu one. – nobody Feb 6 at 17:01
0

I was facing the same problem, but accidently resolved it.
So try this one...

Right Click anywhere on the Desktop and select "Open Terminal". It is working for me, at least. Just to let you know, I am still unable to open terminal by clicking on the Terminal icon or through the Keyboard Shortcut.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.