<div dir="ltr">Hi Neil,<div><br></div><div>thanks for the answer, there is no such package (language-pack-en-base) in debian repositories :(</div><div><br></div><div>Regards,</div><div><br></div><div class="gmail_extra">-- <br clear="all"><div><div class="gmail_signature">Eric Keller<br><br></div></div>
<br><div class="gmail_quote">On Sat, Nov 8, 2014 at 9:01 AM, Neil Greenwood <span dir="ltr"><<a href="mailto:neil.greenwood@gmail.com" target="_blank">neil.greenwood@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><p dir="ltr">On 8 Nov 2014 07:54, "Eric Keller" <<a href="mailto:keller.eric@gmail.com" target="_blank">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" target="_blank">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>
</div></div><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>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div></div>