[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting locales on Debian



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

Attachment: signature.asc
Description: Digital signature


Reply to: