Kernel fun => dreaded "locale not supported" problem

Florian Diesch diesch at spamfence.net
Mon Aug 21 20:16:08 UTC 2006


David Abrahams <dave at boost-consulting.com> wrote:

> Florian Diesch <diesch at spamfence.net> writes:
>
>> David Abrahams <dave at boost-consulting.com> wrote:
>>
>>> I'm getting a problem I've seen before, and that has been posted about
>>> all over the web, but to which I can't find a solution that works.
>>>
>>> When starting gdm, I get the following:
>>>
>>> perl: warning: Setting locale failed.
>>> perl: warning: Please check that your locale settings:
>>>       LANGUAGE = "en_US:en_GB:en",
>>>       LC_ALL = (unset),
>>>       LANG = "en_US.UTF-8"
>>>
>>>   are supported and installed on your system
>>
>> See /usr/share/i18n/SUPPORTED fpr a list of locales supported by Ubuntu.
>> If yours are amoung them run
>>  sudo locale-gen en_US.UTF-8
>> (or whatever locales you want) to create the locales.
>>  locale -a
>> lists all locales currently created on your system (not case sensitive)
>
> Thanks, but it's too late; I've already reinstalled.  
>
> Just for my edification: do you think it's likely that 
>
>    sudo locale-gen en_US.UTF-8
>
> could have wroked where
>
>     sudo locale-gen
>
> didn't?  If so, why?

"sudo locale-gen" regenerates all locales you have choosen for
generation so far while "sudo locale-gen en_US.UTF-8" first adds
"en_US.UTF-8".

See the manpage of locale-gen for details.


   Florian
-- 
<http://www.florian-diesch.de/>




More information about the ubuntu-users mailing list