<p dir="ltr">On 8 Nov 2014 07:54, "Eric Keller" <<a href="mailto:keller.eric@gmail.com">keller.eric@gmail.com</a>> wrote:<br>
><br>
> Hi everyone,<br>
><br>
> I am currently using LXC (debian wheezy) container on my Ubuntu 12.04 64 bit distribution.<br>
><br>
> setting up the container, goes fine but the locale are not working accordingly.<br>
><br>
> $ locale<br>
> locale: Cannot set LC_CTYPE to default locale: No such file or directory<br>
> locale: Cannot set LC_MESSAGES to default locale: No such file or directory<br>
> locale: Cannot set LC_ALL to default locale: No such file or directory<br>
> LANG=en_US.UTF-8<br>
> LANGUAGE=en_US:<br>
> LC_CTYPE=en_US.UTF-8<br>
> LC_NUMERIC="en_US.UTF-8"<br>
> LC_TIME="en_US.UTF-8"<br>
> LC_COLLATE="en_US.UTF-8"<br>
> LC_MONETARY="en_US.UTF-8"<br>
> LC_MESSAGES="en_US.UTF-8"<br>
> LC_PAPER="en_US.UTF-8"<br>
> LC_NAME="en_US.UTF-8"<br>
> LC_ADDRESS="en_US.UTF-8"<br>
> LC_TELEPHONE="en_US.UTF-8"<br>
> LC_MEASUREMENT="en_US.UTF-8"<br>
> LC_IDENTIFICATION="en_US.UTF-8"<br>
> LC_ALL=<br>
><br>
> I did apply the usual tricks (<a href="https://wiki.debian.org/Locale">https://wiki.debian.org/Locale</a>) to setup the locale in vain. The locale command continue to throw me the same errors!<br>
><br>
> the update-locale also behave in a strange way:<br>
> sudo /usr/sbin/update-locale <br>
> perl: warning: Setting locale failed.<br>
> perl: warning: Please check that your locale settings:<br>
>         LANGUAGE = "en_US:",<br>
>         LC_ALL = (unset),<br>
>         LC_CTYPE = "en_US.UTF-8",<br>
>         LANG = "en_US.UTF-8"<br>
>     are supported and installed on your system.<br>
> perl: warning: Falling back to the standard locale ("C").<br>
> *** update-locale: Error: invalid locale settings:  LANG=en_US.UTF-8<br>
><br>
> as does the dpkg-reconfigure locales:<br>
><br>
> sudo dpkg-reconfigure -f noninteractive locales<br>
> perl: warning: Setting locale failed.<br>
> perl: warning: Please check that your locale settings:<br>
>         LANGUAGE = "en_US:",<br>
>         LC_ALL = (unset),<br>
>         LC_CTYPE = "en_US.UTF-8",<br>
>         LANG = "en_US.UTF-8"<br>
>     are supported and installed on your system.<br>
> perl: warning: Falling back to the standard locale ("C").<br>
> locale: Cannot set LC_CTYPE to default locale: No such file or directory<br>
> locale: Cannot set LC_MESSAGES to default locale: No such file or directory<br>
> locale: Cannot set LC_ALL to default locale: No such file or directory<br>
> Generating locales (this might take a while)...<br>
>   en_US.UTF-8...cannot change mode of new locale archive: No such file or directory<br>
>  done<br>
> Generation complete.<br>
> perl: warning: Setting locale failed.<br>
> perl: warning: Please check that your locale settings:<br>
>         LANGUAGE = "en_US:",<br>
>         LC_ALL = (unset),<br>
>         LC_CTYPE = "en_US.UTF-8",<br>
>         LANG = "C"<br>
>     are supported and installed on your system.<br>
> perl: warning: Falling back to the standard locale ("C").<br>
><br>
> has someone a hint where I could investigate<br>
><br>
> N.B.: /etc/default/locale /etc/locale.gen and /etc/profile are set according to the debian wiki page<br>
><br>
> here are the deailed setup steps executed in the container as root:<br>
><br>
> apt-get purge locales-all<br>
> dpkg-reconfigure -f noninteractive locales<br>
> echo "en_US.UTF-8 UTF-8" > /etc/locale.gen<br>
> echo "en_US.UTF-8 UTF-8" > /etc/default/locale<br>
> /usr/sbin/locale-gen<br>
> echo ": ${LANG:=en_US.UTF-8}; export LANG" > /etc/profile.d/language</p>
<p dir="ltr">Hi Eric,</p>
<p dir="ltr">I'm not a Debian user, nor an expert on locales. But to me it looks like you haven't installed an English locale, specifically the US one. </p>
<p dir="ltr">Regards,</p>
<p dir="ltr">Neil<br>
</p>