Re: [Vserver] locale and interface binding problem

From: Corey Wright <undefined_at_pobox.com>
Date: Mon 20 Mar 2006 - 19:04:16 GMT
Message-Id: <20060320130416.c6dd75c2.undefined@pobox.com>

On Mon, 20 Mar 2006 14:56:30 +0100
Eugen Leitl <eugen@leitl.org> wrote:

> I keep having those nasty
>
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
> LANGUAGE = "en_DE:en_US:en_GB:en",
> LC_ALL = (unset),
> LANG = "en_US"
> are supported and installed on your system.
> perl: warning: Falling back to the standard locale ("C").
>
> messages in a vserver created by
>
> vserver v17 build --force -n v17 --hostname v17.ativel.com --context 17
> --interface eth0:192.168.1.17/24 -m debootstrap -- -d sarge -m
> http://amd64.debian.net/debian-amd64/
>
> and gone through the usual apt-setup and apt-get update / upgrade
> orgies.
>
> locales is installed, and locales generated. Is this a known
> problem, or something broken in am64-land? I don't recall
> this in vanilla Debian Sarge. Websearches don't show anything
> conclusive.

just another data point...

note: extraneous application output represented by "...".

# uname -a
Linux kings 2.6.12-10.26+1-amd64-k8 #1 Sat Jan 28 15:43:54 CST 2006 x86_64 GNU/Linux
# mkdir chroot
# debootstrap sarge ./chroot http://apt-proxy:9999/debian-sarge-amd64
...
# chroot ./chroot
# perl -e 'print "hello world\n"'
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en:C",
        LC_ALL = (unset),
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
hello world
# echo deb http://apt-proxy:9999/debian-sarge-amd64 stable main >/etc/apt/sources.list
# apt-get update
...
# apt-get install locales
...
<select generate en_US ISO-8859-1, en_US.ISO-8859-15 ISO-8859-15, en_US.UTF-8 UTF-8>
<select default en_US>
...
# perl -e 'print "hello world\n"'
hello world

to reconfigure locale generation & default locale, just run "dpkg-reconfigure locales".

i don't think that there is any difference in configuring locales between a vserver and a plain chroot (assuming both are installed using debootstrap).

corey

-- 
undefined@pobox.com
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Mar 21 10:54:00 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 21 Mar 2006 - 10:54:10 GMT by hypermail 2.1.8