OpenVZ: Ubuntu 10.04: "setting locale failed" returns on reboot

  • Thread starter Thread starter auberon
  • Start date Start date
A

auberon

Guest
Hi all!

Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
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
From all the other posts on this error message, I know I could ignore this error. However, I am both curious and slightly annoyed with it. I know how to temporarily get rid of the message by either

$ dpkg-reconfigure locales
$ export LANG=C

or

$ sudo locale-gen en_US
$ export LC_ALL="en_US"

But as soon as I reboot the OpenVZ 10.04 instance, I get the same error message. Why does this error return despite me setting the locale?
There must be lots of people experiencing this issue.
 
Hey there,

there is some locale package missing in the container templates.
Do a
Code:
apt-get update
apt-get install --reinstall language-pack-en
an you're done.