Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Locale problem
PostPosted: Thu Aug 18, 2011 10:38 pm 
Offline
Senior Newbie

Joined: Thu Jun 24, 2010 9:46 am
Posts: 13
Website: http://www.firehole.us
Location: Bartlett, IL, USA
I'm getting this message when running apt-get:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_COLLATE = "en_US",
LC_TYPE = "en_US",
LC_MESSAGES = "en_US",
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_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

My /etc/default/locale file contains this:

# File generated by update-locale
LANG="en_US.UTF-8"
LC_TYPE="en_US"
LC_MESSAGES="en_US"
LC_COLLATE="en_US"

/var/lib/locales/supported.d/en contains this:

en_HK.UTF-8 UTF-8
en_DK.UTF-8 UTF-8
en_IN UTF-8
en_ZW.UTF-8 UTF-8
en_NZ.UTF-8 UTF-8
en_PH.UTF-8 UTF-8
en_NG UTF-8
en_US.UTF-8 UTF-8
en_GB.UTF-8 UTF-8
en_AU.UTF-8 UTF-8
en_SG.UTF-8 UTF-8
en_BW.UTF-8 UTF-8
en_AG UTF-8
en_ZA.UTF-8 UTF-8
en_CA.UTF-8 UTF-8
en_IE.UTF-8 UTF-8

...and /var/lib/locales/supported.d/local contains this:

en_US.UTF-8 UTF-8

What am I missing here?

Thanks, Len


Top
   
 Post subject:
PostPosted: Fri Aug 19, 2011 5:40 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Looks like the "C" locale isn't installed on your system? You can check with locale -a. Doing export LC_ALL="en_US" before running apt-get may help (or may not).


Top
   
 Post subject:
PostPosted: Fri Aug 19, 2011 8:38 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
I ran into something this with a fresh squeeze deployment. Check the setting of AcceptEnv in sshd_config -- in my case, it was caused by exporting Dutch environment variables to an English-only server.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Fri Aug 19, 2011 9:13 am 
Offline
Senior Newbie

Joined: Thu Jun 24, 2010 9:46 am
Posts: 13
Website: http://www.firehole.us
Location: Bartlett, IL, USA
An attempt to export LC_ALL="en_US", resulted in:

-bash: warning: setlocale: LC_ALL: cannot change locale (en_US): No such file or directory

...and sshd_config contains:

AcceptEnv LANG LC_*

Thanks, Len


Top
   
 Post subject:
PostPosted: Fri Aug 19, 2011 10:48 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
The locales for your region might not be installed. Try "apt-get install language-pack-en" (if using Ubuntu, at least)... that might get the things rolling.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Fri Aug 19, 2011 1:23 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
ljhardy wrote:
...and sshd_config contains:

AcceptEnv LANG LC_*

Comment it out, i.e. stop the export of environment variables from your workstation to your server.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Fri Aug 19, 2011 1:31 pm 
Offline
Senior Newbie

Joined: Thu Jun 24, 2010 9:46 am
Posts: 13
Website: http://www.firehole.us
Location: Bartlett, IL, USA
apt-get says the English language pack is already installed.

Commenting out the export in sshd_config had no effect, the same errors/warnings are showing up.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: sjnorton and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group