Bug #150
Perl Warning Setting Locale Failed on Debian Linux Container
Description
I encountered an error during on Debian using LXC containers, it did not appear to break anything, so other than being annoying there was no reason to actively fix this. The error stated:
Fix it by entering:perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LANG = "en_US.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
debconf: delaying package configuration, since apt-utils is not installed
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen apt-get -y --force-yes install locales dpkg-reconfigure locales
In dpkg-reconfigure, select the correct locale (mine is 'en_US.UTF-8')
Updated by Daniel Curtis almost 10 years ago
- Project changed from 21 to GNU/Linux Administration
- Category set to Jails / Container