Howto fix this warning of locales

Eric Dunbar eric.dunbar at gmail.com
Sun Jan 16 03:12:07 UTC 2005


On Sun, 16 Jan 2005 03:40:31 +0100, Danilo Piazzalunga wrote:
> maikhai wrote:
> > perl: warning: Setting locale failed.
> > perl: warning: Please check that your locale settings:
> >         LANGUAGE = "en_US:en_GB: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").
> >
> > Pls show me howto fix this? (I always use LANG=en_US.UTF-8 in my system)
> 
> Usually this means that your locale wasn't generated. What is the content
> of /etc/locale.gen?
> 
> Try running 'sudo dpkg-reconfigure locales' and make sure that your locale
> (en_US.UTF-8) is selected from the list and set as default.
> 
> Is it all right now? If not, what was the output of the command and
> what is the content of /etc/locale.gen?

Hello, I had the same problem from when I first upgraded to Hoary. On
a hunch I installed the package locales and it fixed my problems!!!

See the following for the output of dpkg-reconfigure & apt-get:

eric at UbuntuOnPismo:~ $ sudo dpkg-reconfigure locales
Password:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_CA:en_GB:en_US:en",
        LC_ALL = (unset),
        LANG = "en_CA.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
/usr/sbin/dpkg-reconfigure: locales is broken or not fully installed

eric at UbuntuOnPismo:~ $ sudo apt-get install locales




More information about the ubuntu-users mailing list