Fix locales warning on Debian or Ubuntu

Sometimes you get the following warning when running commands in Debian / Ubuntu powered computers

==============

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

===============

To fix this run the following command as root

root@php-server:~# apt-get install language-pack-en-base

Share and Enjoy:
  • Digg
  • Mixx
  • del.icio.us
  • StumbleUpon
  • Facebook
  • TwitThis
  • Technorati
  • Google

Tags: ,

One Response to “Fix locales warning on Debian or Ubuntu”

  1. Clive Says:

    My Debian box is suffering from the locales warning so I tried # apt-get install language-pack-en-base as root. This is what I got;
    debian:/home/clive# su
    debian:/home/clive# apt-get install language-pack-en-base
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Couldn’t find package language-pack-en-base

    Do I need to download this package or do I have bigger problems than the locales warning?

Leave a Reply