Fun with ones and zeros



Ubuntu server locale errors

This is mostly a note to myself... After setting up a minimal Ubuntu server install (in Xen), following these instructions using debootstrap I saw lots of errors like this:

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").

Checking with locale -a would show

C
POSIX

While a full Ubuntu server install (off a CD) would show:

C
en_US.utf8
POSIX

This command seems to have generated the missing locale and made everybody happy.

localedef --no-archive -i en_US -c -f UTF-8 en_US.UTF-8

posted: Friday, 31 October 2008 12:17 | tags: linux ubuntu


Comments

#1 rukeba commented, on November 2, 2008 at 9:26 a.m.:

O! Many thanks! it really works.

#2 Phillip Pearson commented, on November 3, 2008 at 1:47 a.m.:

Excellent. So far I've been fixing this error with 'dpkg-reconfigure locales', but it requires clicking through a few dialogs. Thanks for the one-liner!

blog comments powered by Disqus

A Django site.

Valid XHTML 1.0 Transitional