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

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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!