5

After upgrading to Ubuntu 17.10 from 17.04, I have been unable to launch gnome-terminal.
Upon clicking terminal icon, the taskbar shows terminal loading bar but then disappears after a few seconds.

Terminal loading in the taskbar:

Image

I have tried the following:

  • Purged and Re-installed gnome-terminal
  • sudo apt-get autoremove and fix-missing
  • Changed locale to en_US in /etc/default/locale

I am able to access xterm and running gnome-terminal returns the following:

No protocol specified  
Unable to init server: Could not connect:
Connection refused   
Failed to parse arguments: Cannot open display:

Searching the error gives results solving terminal access issues over an ssh connection which is not my case.

How do I fix this and get gnome-terminal running?

abu_bua
  • 10,473
  • 10
  • 45
  • 62
Sanjeev Tripathi
  • 51
  • 1
  • 1
  • 4
  • 1
    A work-around is to install another terminal emulator. There are many, that are on par with `gnome-terminal`. Some are lighter, some are more powerful. Do you want tips about suitable candidates? – sudodus Oct 30 '17 at 11:47
  • @sudodus Yeah sure! Xterm doesn't let me use copy-paste shortcuts. Anything that does will be handy – Sanjeev Tripathi Oct 30 '17 at 11:53
  • `lxterminal` and `sakura` are light, `xfce4-terminal` is medium (comes with Xubuntu), `tilda` has special features ..., I have read about `terminator` but not used it. -- But you *can* mark and paste with `xterm` according to this link, https://askubuntu.com/questions/961175/copy-and-paste-doesnt-work-in-the-terminal/961226#961226 – sudodus Oct 30 '17 at 12:04
  • 1
    I have installed Terminator which works good. It does support copy-paste . Thanks for the suggestions. @sudodus – Sanjeev Tripathi Oct 30 '17 at 12:11
  • I think you might stay with `terminator` :-) – sudodus Oct 30 '17 at 12:16
  • https://wiki.gnome.org/Apps/Terminal/FAQ#Terminal_fails_to_start might help you. – egmont Oct 30 '17 at 13:30
  • If you found this Q while trying to get gnome-terminal to run in WSL, try this answer: https://superuser.com/a/1556456/414476 – John McFarlane Feb 11 '22 at 10:45

2 Answers2

1

I has the same problem but with file-roller and follow this solution.

You have to change this file /etc/ssh/sshd_config (with root permissions). Just add

X11Forwarding yes

After saving the file, initialize a new terminal or reboot the system.

abu_bua
  • 10,473
  • 10
  • 45
  • 62
Santoja
  • 11
  • 1
  • 2
    I tried this method and reinstalled gnome-terminal. Checked sshd_config and it already has X11Forwarding set as yes. So the solution doesn't work for me. I guess I will just continue using terminator for now. Thank you for your answer @Santoja . If the answer does help someone, let me know, I will accept the answer. – Sanjeev Tripathi Oct 31 '17 at 06:21
0

If you have installed new python 3.5 env you are unable to open gnome-terminal. Use the following commands:

  1. sudo rm /usr/bin/python3
  2. sudo ln -s python3.5 /usr/bin/python3
pomsky
  • 67,112
  • 21
  • 233
  • 243