23

I have Ubuntu-Gnome 14.04 (Gnome 3.12.2).

When I try to run gnome-terminal by following command :

$ gnome-terminal
Error constructing proxy for org.gnome.Terminal: /org/gnome/Terminal/Factory0: 
Error calling StartServiceByName for org.gnome.Terminal:
GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: 
Process /usr/lib/gnome-terminal/gnome-terminal-server exited with status 8
  • Experiencing the same error message on Ubuntu 19.04 / GNOME Terminal 3.34.2, I found this answer worked. – John McFarlane Feb 7 at 17:47
17

You have to add LANG=en_US.UTF-8 to /etc/default/locale and reboot your system. (Solution from this Arch Linux forum post.)

| improve this answer | |
  • 19
    This didn't work for me. – Cerin Feb 3 '17 at 15:03
  • Worked for me! It looks like I had LANG=en_US.UTF-8 in my file, but it was commented out. Uncommented it and rebooted, then gnome-terminal started right up. – Malachi Bazar Sep 13 '18 at 16:51
  • 4y since this answer. and the user feedback when this is hit is still the same. – hbogert Feb 25 '19 at 8:40
14

Here is the list of commands which helps me:

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

As you can see I just reinstall gnome-terminal

| improve this answer | |
  • 2
    This works for me. – Adam Gosztolai Sep 20 '18 at 15:49
  • 1
    helped in Ubuntu Bionic Beaver 18.04 – xealits Jan 4 at 15:33
5

You probably messed around with your locales. Either add LANG=en_US.UTF-8 to /etc/locale.conf and reboot or delete that file altogether (sudo rm /etc/locale.conf && sudo locale-gen en_US.UTF-8 && sudo dpkg-reconfigure locales) and reboot.

| improve this answer | |
3

I had this problem when I created a new Ubuntu 16.04.3 LTS Desktop. The fix was to edit the /etc/default/locale file by adding the following line to the end of the file:

LC_ALL="en_US.UTF-8"

Then reboot and the problem was gone.

| improve this answer | |
3

This is a winner for me:

/usr/bin/dbus-launch /usr/bin/gnome-terminal &

as learned here

| improve this answer | |
  • In my case, I was trying to run gnome-terminal from inside a shell created by Node.js... There was nothing wrong with my locale file and this solution executing it with dbus-launch was the one that really solved the problem for me. Thanks! – Rafael Muynarsk May 5 at 19:35
1

Execute sudo dpkg-reconfigure locales in an alternative terminal emulator and select en_US.UTF-8 UTF-8 , choose it as the default locale. gnome-terminal should work.

| improve this answer | |
0

Another cause of the problem is that new preferences have been activated at the start of the session, check "Applications at startup" Preferences

| improve this answer | |
0

I had to combine answers from @TomH and @BarryPye. To get a gnome-terminal window:

LC_ALL=en_US.UTF-8 /usr/bin/dbus-launch gnome-terminal

In my case, the issue was occuring in a VNC session. I fixed it in my ~/.vnc/xstartup by changing the window manager invocation to:

LC_ALL=en_US.UTF-8 /usr/bin/dbus-launch /bin/gnome-session

Then gnome-terminal starts directly from command or the gnome graphical launcher, without the need to extra dbus-launch commands.

| 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.