Gnome-terminal won't run after update

OK, that’s got it. I had a weird response to running sudo edit /etc/locale.gen (blank file), so I did it with sudo vim and it’s fixed and works.

Thx
Reid

I just did a massive update and now when I click on Gnome Terminal, it just spins but won’t open. I’ve had to install Pantheon terminal to have access. I have tried to reinstall it in Pamac.
BTW, I have edited the locale.gen file to not have a “#” in from of en_US.UTF-8 and restarted. Still no joy. BTW, the ‘solution’ listed above was from a previous forum that I had started and it didn’t help me. I had ended up reinstalling my OS that night instead, due to other complications unrelated to this. That reinstall solved my problem not the locale.gen correction mentioned above.

P.S. When I type in locale into Pantheon terminal I get the following errors:
manjaro% locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.utf8
LC_CTYPE=“en_US.utf8”
LC_NUMERIC=“en_US.utf8”
LC_TIME=“en_US.utf8”
LC_COLLATE=C
LC_MONETARY=“en_US.utf8”
LC_MESSAGES=“en_US.utf8”
LC_PAPER=“en_US.utf8”
LC_NAME=“en_US.utf8”
LC_ADDRESS=“en_US.utf8”
LC_TELEPHONE=“en_US.utf8”
LC_MEASUREMENT=“en_US.utf8”
LC_IDENTIFICATION=“en_US.utf8”
LC_ALL=

I’m sorry for being overcareful, but when you say “restarted” you mean running, with sudo, the command “locale-gen” after altering the “/etc/locale.gen” file, correct? Again, I apologize if I’m being annoying but sometimes we miss obvious things.

Not obvious to me. So I appreciate you telling me. I was unaware of this need to type in locale-gen in sudo. I did this and it fixed it.

Thanks for the tip guys! This also fixed my problem. I edited “/etc/locale.gen” and run the command ‘locale-gen’ after that and all is good now!

I had the same problem on a completely fresh install of Manjaro yesterday.
No Gnome terminal right out of the box

All I’ve got in locale.conf is:

LANG=en_GB.UTF-8
LC_COLLATE=C

I tried changing it to UTF8, but it doesn;t make a difference.
Seriously, this stuff shouln’t happen on a fresh install

I’ve had this issue as well. I’ve opened a TTY, uncommented the locales I needed on /etc/locale.gen and then generated the locales with sudo locale-gen. All I had was C and POSIX on locale -a.

What @neilvilela said is the way to do it.
If you have no working terminal - go to a TTY
and edit /etc/locale.gen - remove the # in front of the locales you want to have.
for example:
sudo nano /etc/locale.gen

Save the file and run sudo locale-gen

Alternatively, you could use this command to append the locale to the end of the file without needing to edit it:
sudo echo "en_GB.UTF-8 UTF-8" >> /etc/locale.gen
then, in both cases:
sudo locale-gen
to actually generate the locales

How this could have happened to so many people (the forum is full with this issue) is a mystery to me.
The locales where already set and generated - but somehow they got removed during that update.
It did not happen to everyone - just to some, Gnome and KDE users, as far as I could see.

I’m a MacBook Pro user, so using UK Macintosh
Maybe it’s just an issue for certain languages/locales like that

There usually is a quick fix but is it any wonder why Linux is not adopted widely? It’s not just about available software… it’s about shit like this happening to noobs who then get a sour taste about Linux in their mouth that possibly never goes away

1 Like

THANK YOU!! I didn’t know I had to run the locale-gen command. Thanks everyone :slight_smile:

I had this problem as well and editing the /etc/locale.gen file and commenting the local allowed me to open the terminal again.

you didn’t need to run
sudo locale-gen
afterwards as well?
… just saying - because that step is not just important - it is crucial

Yes i did run that command as well.

just wanted to make sure
for people who might read this (your comment) … a year from now

1 Like

Indeed. There’s only 14 threads now about the subject. Any search for gnome-terminal or locale will find them, I’m sure.

'Course, that’s only helpful if people actually search before posting…

sorry I have no idea about this stuff, how do I know which locals I want to have? I have a german keyboard but operating system language is american english. So far I just removed the hashs from all lines that start with de_de, but that did not solve it for me yet (I did the sudo locale-gen)

Depends … :wink:
Would you like your system in german (menus, messages …)?
Then you need the german locale
Are you american?
Then you want the en_US.UTF-8 locale
This or some other english locale - you should be able to tell by the name.
The difference is often the default units that are used plus some, as the name says, local specialties.

You don’t need a german locale to use a german keyboard - that is just a matter of keyboard layout.
I mostly boot a live system after having selected the german keymap - else z and y are swapped and many symbols are at different keys than what is written on them.
But the system language is still english then.

It doesn’t hurt to have more than one - but OTOH - why have stuff you never intend to use …?

Always prefer UTF-8 locales!

1 Like

thanks for the detailed answer!! now after adding the en_US.UTF-8 it worked!

Bingo!