You are not logged in.

#1 2014-04-10 14:59:45

wntyygtwxf
Member
Registered: 2011-05-17
Posts: 20

[sovled] gnome3.12 locale issue, cannot open gnome-terminal

I update gnome from 3.10 to 3.12, everything works fine except that I cannot open gnome-terminal, the error message shows

(process:2410): 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 1.

The other problem is that I cannot start fcitx(I use it to input chinese) either, there is somethings wrong in my locale, when I type 'locale ' it shows

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-UTF-8
LC_CTYPE=en_US-UTF-8
LC_NUMERIC="en_US-UTF-8"
LC_TIME="en_US-UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US-UTF-8"
LC_MESSAGES="en_US-UTF-8"
LC_PAPER="en_US-UTF-8"
LC_NAME="en_US-UTF-8"
LC_ADDRESS="en_US-UTF-8"
LC_TELEPHONE="en_US-UTF-8"
LC_MEASUREMENT="en_US-UTF-8"
LC_IDENTIFICATION="en_US-UTF-8"
LC_ALL=

I try to reinstall the glibc or regenerate the locale-gen, but none of them solve the problem,  so can anyone help me? thanks.

Last edited by wntyygtwxf (2014-04-11 10:25:48)

Offline

#2 2014-04-10 15:58:23

blackout23
Member
Registered: 2011-11-16
Posts: 781

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

Issues with packages from [testing] belong in the [testing] repo forum.

https://bbs.archlinux.org/viewforum.php?id=49

Offline

#3 2014-04-10 19:45:05

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

You should enable the locale in /etc/locale.gen and run locale-gen.

Offline

#4 2014-04-11 04:59:09

wntyygtwxf
Member
Registered: 2011-05-17
Posts: 20

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

JGC wrote:

You should enable the locale in /etc/locale.gen and run locale-gen.

I already did it, but it didn't solved the problem.

Offline

#5 2014-04-11 08:08:16

zbelial
Member
Registered: 2014-04-11
Posts: 2

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

why did you set them to "en_US-UTF-8", but not "en_US.UTF-8"?

Offline

#6 2014-04-11 09:15:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

Post the output of

locale -a
localectl

Offline

#7 2014-04-11 09:27:26

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

zbelial wrote:

why did you set them to "en_US-UTF-8", but not "en_US.UTF-8"?

I believe @zbelial has noticed the right problem and given the fix here.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#8 2014-04-11 10:27:18

wntyygtwxf
Member
Registered: 2011-05-17
Posts: 20

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

clfarron4 wrote:
zbelial wrote:

why did you set them to "en_US-UTF-8", but not "en_US.UTF-8"?

I believe @zbelial has noticed the right problem and given the fix here.

you are right, thank you guys!

Offline

#9 2014-04-11 10:28:18

wntyygtwxf
Member
Registered: 2011-05-17
Posts: 20

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

zbelial wrote:

why did you set them to "en_US-UTF-8", but not "en_US.UTF-8"?

thank you very much.

Offline

#10 2014-04-11 10:29:00

wntyygtwxf
Member
Registered: 2011-05-17
Posts: 20

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

karol wrote:

Post the output of

locale -a
localectl

thank you for you kindness.

Offline

#11 2014-04-11 10:37:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

Sorry for not getting what zbelial meant <facepalm>

wntyygtwxf, multiple sequential posts from the same user are a form of bumping, which is against our forum etiquette. Next time please combine your responses into one post, OK?

Offline

#12 2014-04-11 11:36:12

zbelial
Member
Registered: 2014-04-11
Posts: 2

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

What I meant is there should be a "."(point) between en_US and UTF-8, not a "-"(hyphen).
Is it because of my poor english? If so, sorry. smile

Edit: Now I see that you have got what I meant. Sorry for this addtional post.

karol wrote:

Sorry for not getting what zbelial meant <facepalm>

Last edited by zbelial (2014-04-11 11:40:47)

Offline

#13 2014-04-11 11:57:21

gogoer
Member
Registered: 2013-02-26
Posts: 6

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

I have the same problem after I upgraded to gnome 3.12, I can't use gnome-terminal.

The error is:
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 1

Any one could help on this ?

Offline

#14 2014-04-11 16:23:34

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

@gogoer, did you also get a message about the C locale, or is this an unrelated issue (in which you need to start a new thread)?


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#15 2014-04-12 01:08:51

wntyygtwxf
Member
Registered: 2011-05-17
Posts: 20

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

karol wrote:

Sorry for not getting what zbelial meant <facepalm>

wntyygtwxf, multiple sequential posts from the same user are a form of bumping, which is against our forum etiquette. Next time please combine your responses into one post, OK?

ok, thank you.

Offline

#16 2014-04-12 01:46:23

gogoer
Member
Registered: 2013-02-26
Posts: 6

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

I don't meet C locale error message after I exec gnome-terminal. Although that, I post below output. 

~  locale -a
C
en_US
en_US.iso88591
en_US.utf8
POSIX
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8

~  localectl
System Locale: n/a

VC Keymap: n/a
X11 Layout: n/a


clfarron4 wrote:

@gogoer, did you also get a message about the C locale, or is this an unrelated issue (in which you need to start a new thread)?

Offline

#17 2014-04-12 02:09:50

gogoer
Member
Registered: 2013-02-26
Posts: 6

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

I have resolved this issue. The reason I guess is also "locale"
"$localectl" output "System Locale: n/a" and I check the /etc/locale.conf I found this file is lost.
So after I press below command and reboot the machine, gnome-terminal could be started.
# localectl set-locale LANG="en_US.UTF-8"

Thanks all!


gogoer wrote:

I don't meet C locale error message after I exec gnome-terminal. Although that, I post below output. 

~  locale -a
C
en_US
en_US.iso88591
en_US.utf8
POSIX
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8

~  localectl
System Locale: n/a

VC Keymap: n/a
X11 Layout: n/a


clfarron4 wrote:

@gogoer, did you also get a message about the C locale, or is this an unrelated issue (in which you need to start a new thread)?

Offline

#18 2014-04-16 17:02:50

sandstorm
Member
From: Zurich [CH] & Mannheim [DE]
Registered: 2005-08-13
Posts: 169

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

I could get it solved by the above and additionally executing

locale-gen

Last edited by sandstorm (2014-04-16 20:07:15)

Offline

#19 2017-03-13 21:31:34

strpeter
Member
From: Geneva
Registered: 2012-11-24
Posts: 24

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

Summarizingly I want to refer the user to read the wiki about Locale: https://wiki.archlinux.org/index.php/locale

tl;dr
1. Adapt your file

/etc/locale.gen

such that at least one language (line) is uncommented.
2. Then run as superuser

locale-gen

Offline

#20 2017-03-13 21:36:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [sovled] gnome3.12 locale issue, cannot open gnome-terminal

You are replying to a thread that is three years old, and marked as solved. Don't do that: https://wiki.archlinux.org/index.php/Co … bumping.22



Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB