Project

General

Profile

Bug #150

Perl Warning Setting Locale Failed on Debian Linux Container

Added by Daniel Curtis over 10 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Jails / Container
Target version:
-
Start date:
07/25/2013
Due date:
% Done:

100%

Estimated time:
0.30 h
Spent time:

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:

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

Fix it by entering:
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')
#1

Updated by Daniel Curtis about 9 years ago

  • Project changed from 21 to GNU/Linux Administration
  • Category set to Jails / Container

Also available in: Atom PDF