Missing locales in xen images

I have just noticed this with the pre-made debian xen images.

Debootstrap does not create locales.

When you run the virtual machine and you get errors like the following, run the commands below.

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = “en_US.UTF-8″
are supported and installed on your system.
perl: warning: Falling back to the standard locale (”C”).

To fix this, run this, replace en_US.UTF-8 with your own locale.

sudo locale-gen en_US.UTF-8

Remember, locale settings are in /etc/environment

LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
Status: 
Closed (fixed)

Comments

Thanks .. I will fix this up shortly.

The Debian Lenny base image has been updated to a new 1.9 version that includes the proper locales. The other Debian and Ubuntu images with the same fix will be available later today ..

Automatically closed -- issue fixed for 2 weeks with no activity.