[Solved] Terminal not opening – Ubuntu

I was facing this problem on my PC yesterday. I had to use Xterm instead of Gnome Terminal. I searched a lot on Internet and finally got a solution.

Error details are pasted below:

Unable to access the Terminal session.

Accessed Xterm and executed the following command to access the Gnome Terminal manually.

gnome-terminal

I got the following error while doing so:

[email protected]:~# gnome-terminal

(process:2689): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

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 org.gnome.Terminal exited with status 9

Solution

I tried to update the Gnome Terminal. However, that didn’t work. Finally I had to purge “locale-gen” on the system to fix the problem with Gnome Terminal.

Executed the following command:

locale-gen --purge
[email protected]:~# locale-gen --purge
Generating locales (this might take a while)...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.

Yup, try to access the Gnome Terminal now!
Let me know if you have any questions.

Post navigation

Arunlal Ashok

Operations Engineer at Endurance International Group. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com
I like to travel. My travelogues are published at Trip Mentor

4 thoughts on “[Solved] Terminal not opening – Ubuntu

  1. i am click on terminal,but it will not open ,how can i fix this, i already try above command,can u suggest me how can i fix it.

  2. Hello Arunlal,
    I was getting python errors while opening the terminal using XTerm. I tried the fix you mentioned but unfortunately it could not fix the issue. The good news I could at last find solution and it’s given below.
    Recently I upgraded Python and I think that caused the issue. I upgraded it to Python 3.6 (here in the shebang line you should mention 3.5)
    I have modified the below file:

    sudo vim /usr/bin/gnome-terminal
    Modify the first line from #!/usr/bin/python to #!/usr/bin/python3.5

    Try to start the terminal now 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *