locale errors during apt-get upgrades

Paulo Sampaio paulo.vicente.neto at gmail.com
Tue May 21 16:18:43 UTC 2013


S
​orry, the message was sent automatically, GMail shortcuts...

I​'m having the same problem. Solved it generating the locales again. Don't
know why that is happening, but  it became common with my AWS EC2 Ubuntu
Instances. Here it is:

# locale-gen pt_BR.UTF-8
*I'm from Brazil =D*
# dpkg-reconfigure locales

For some reason the locales are not generated during install. With bare
metal machines that never happens, only with AWS EC2 =\

This is a fix, the real solution to the problem, wich is not generating the
right locales, is unknow to me.

Atenciosamente,
__
*Paulo Sampaio**
*
*http://devio.us/~psampaio/*


2013/5/21 Paulo Sampaio <paulo.vicente.neto at gmail.com>

> Hello,
>
> I
>
> Atenciosamente,
> __
> *Paulo Sampaio**
> *
> *http://devio.us/~psampaio/*
>
>
> 2013/5/21 Sabniveesu Shashank <shashank16392 at gmail.com>
>
>>
>> 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)
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130521/de0fbf17/attachment.html>


More information about the ubuntu-users mailing list