Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a debian machine running remotely, i tried many ways to fix this locale issue, which is harmless while using apt-get though but because of it my web apps are not functioning properly. I have quick googled for the solution and found that dpkg-reconfigure locales will fix the issues but I am still not getting it right.

idlecool@machine:~$ sudo dpkg-reconfigure locales
[sudo] password for idlecool: 
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_IN"
    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/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
Generation complete.
idlecool@machine:~$ 
share|improve this question

2 Answers 2

up vote 0 down vote accepted

You can also try running sudo locale-gen to run localedef for the locales configured in /etc/locales.gen.

If this doesn't help, please post the /etc/locale.gen because than it would seem that he would try to set a locale not generated before.

share|improve this answer
    
i dont have any file /etc/locales.gen even after issuing sudo locale-gen –  Idlecool Nov 5 '10 at 15:17
    
hey! thanks! it helped.. please change /etc/locales.gen to /etc/locale.gen, it is the file. it uncommented my country character set and it worked. –  Idlecool Nov 5 '10 at 15:36

Hmm you might try to aptitude reinstall locales. Then select all languages you need and check with localeif it is set correctly.

share|improve this answer
    
even it doesnot help, i am getting the same errors –  Idlecool Nov 5 '10 at 15:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.