Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting locales on Debian

61 views
Skip to first unread message

Fred White

unread,
Aug 5, 2013, 5:50:02 PM8/5/13
to
Hello List,

I have to following errors
-bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.utf8)
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_COLLATE to default locale: No such file or directory
C
POSIX

but when I do # locale-gen
-bash: locale-gen: command not found.

Now it seems that I cannot install the locale-gen but locale is install
/# dpkg -l locales
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-====================================-====================================-========================================================================================
rc locales 2.11.3-4 Embedded GNU C Library:
National Language (locale) data [support]

Any solutions

Thanks

Fred






--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/52001D04...@cakafete.com

Claudius Hubig

unread,
Aug 5, 2013, 7:40:02 PM8/5/13
to
Dear Fred,

Fred White wrote:
> I have to following errors
> -bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.utf8)
> 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_COLLATE to default locale: No such file or directory
> C
> POSIX

Normally, this would be a case of

# dpkg-reconfigure locales

However,

> rc locales 2.11.3-4 Embedded GNU C Library: […]

indicates that for some reason, locales is not installed on your
computer (rc means removed, but configuration files left). Try to
install it (apt-get install locales) and then configure it to your
wishes.

Best,

Claudius
--
Please don’t CC me.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20130806011...@ares.home.chubig.net

Slavko

unread,
Aug 6, 2013, 5:40:01 AM8/6/13
to
Hi,

Dňa 05.08.2013 23:45 Fred White wrote / napísal(a):

> I have to following errors
> -bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.utf8)
> 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_COLLATE to default locale: No such file or directory
> C
> POSIX

have you installed the en-GB locales? Something similar happens to me,
when i had installed only sk-SK locales.

regards

--
Slavko
http://slavino.sk

signature.asc

Bob Proulx

unread,
Aug 6, 2013, 4:20:02 PM8/6/13
to
Claudius Hubig wrote:
> Fred White wrote:
> > I have to following errors
> > -bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.utf8)
> > 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_COLLATE to default locale: No such file or directory
> > C
> > POSIX
>
> Normally, this would be a case of
>
> # dpkg-reconfigure locales
>
> However,
>
> > rc locales 2.11.3-4 Embedded GNU C Library: […]
>
> indicates that for some reason, locales is not installed on your
> computer (rc means removed, but configuration files left). Try to
> install it (apt-get install locales) and then configure it to your
> wishes.

Agreed. Alternatively you could disable locales by setting LC_ALL=C
or unseting LANG. Because in order to have the error of being unable
to set the locale then you probably have either LANG=en_GB.utf8 or
LC_ALL=en_GB.utf8 set in your environment. And as described above
that can't work if the locales are not installed.

Bob
signature.asc
0 new messages