Locale not setup

From Jan's Wiki
Revision as of 21:04, 20 March 2014 by Der Jan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I have a virtual private server running Ubuntu 9.10 and got messages like this: Code: 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"). 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 To get rid of the messages I had to run this command:

Code:

   # locale-gen en_US en_US.UTF-8 hu_HU hu_HU.UTF-8

then

Code:

   # dpkg-reconfigure locales

The problem was solved. I didn't had to edit any files like /etc/environment

Source: [1] [2]