locale errors during apt-get upgrades
Tom H
tomh0665 at gmail.com
Tue May 21 18:29:46 UTC 2013
On Tue, May 21, 2013 at 12:08 PM, Sabniveesu Shashank
<shashank16392 at gmail.com> wrote:
> On Tue, May 21, 2013 at 8:58 PM, Tom H <tomh0665 at gmail.com> wrote:
>> On Tue, May 21, 2013 at 10:46 AM, Tom H <tomh0665 at gmail.com> wrote:
>>> On Tue, May 21, 2013 at 9:55 AM, Sabniveesu Shashank
>>> <shashank16392 at gmail.com> wrote:
>>>> On Tue, May 21, 2013 at 7:15 PM, Tom H <tomh0665 at gmail.com> wrote:
>>>>> On Mon, May 20, 2013 at 9:03 AM, Sabniveesu Shashank
>>>>> <shashank16392 at gmail.com> wrote:
>>>>>>
>>>>>> Hi, I've been using Ubuntu since 11.10. Why do I get the following
>>>>>> messages whenever I update my packages? Why doesn't Ubuntu itself
>>>>>> set them by default?
>>>>>>
>>>>>> 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
>>>>>> perl: warning: Setting locale failed
>>>>>> perl: warning: Please check that your locale settings:
>>>>>> LANGUAGE = (unset),
>>>>>> LC_ALL = (unset)
>>>>>> LANG = "en_IN.ISO8859-1"
>>>>>> are supported and installed on your system.
>>>>>> perl: warning: Falling back to the standard locale ("C").
>>>>>
>>>>> What's the output of "locale" and "locale -a"?
>>>>
>>>> Pasted them at http://pastebin.com/pdKvRhgy
>>>
>>> I forgot.
>>>
>>> What's the output of "cat /etc/environment"?
>>>
>>> If you have "LANG=en_IN" in that file, change it to "LANG=en_IN.UTF-8".
>>>
>>> (Someone else asked you whether you're setting LANG or LC_* in one of
>>> the bash startup files?)
>>
>> Also "cat /etc/default/locale".
>>
>> "...environment" is used by a pam module and "...locale" by an upstart
>> job.
>
> $ cat /etc/default/locale
> LANG="en_IN"
> LANGUAGE="en_IN:en"
>
> /etc/environment has no entry for LANG
>
> What I'm asking is why are these unset in every release..(NOTE: I always did
> a fresh install since 11.10)
OK. So you have everything set correctly.
I'm not sure what you mean by your question. Do you mean that you've
installed 11.10, 12.04, 12.10, and 13.04 and had this error with all
of them?
I've had these locale errors once in the past and I just recompiled my
chosen locale with "locale-gen" to get rid of this error.
I've just tried the following in a VM (I used "--purge" to get clean
output, if you do this you'll lose your Telegu locales):
# locale-gen --purge en_US.UTF-8 en_IN
Generating locales...
en_IN.UTF-8... done
en_US.UTF-8... done
Generation complete.
# localedef --list-archive
en_IN
en_IN.utf8
en_US.utf8
The "locale-gen" command failed when specifying "en_IN.utf8" or
"en_IN.ISO8859-1". I have no idea why; especially for "en_IN.UTF-8"
since it's generated when using "en_IN" and it's listed in
"/usr/share/i18n/SUPPORTED". (Furthermore, I have no idea why you have
the message about "en_IN.ISO8859-1"!)
Maybe setting "en_IN.UTF-8" for LANG in "/etc/default/locale" will fix
your problem without having to recompile locales; but I doubt it.
More information about the ubuntu-users
mailing list