如何修复debian lenny中的区域设置(最小)

我有一个远程运行的debian机器,我尝试了很多方法来解决这个语言环境问题,虽然使用apt-get但是因为这个问题,我的web应用程序无法正常工作。 我已经快速search解决scheme,发现dpkg-reconfigure locales将解决问题,但我仍然没有得到正确的。

 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:~$ 

您也可以尝试运行sudo locale-gen来为/etc/locales.genconfiguration的语言环境运行localedef

如果这没有帮助,请张贴/etc/locale.gen因为似乎他会尝试设置一个不是以前生成的语言环境。

嗯,你可以尝试aptitude reinstall locales 。 然后select所需的所有语言,并检查locale是否正确。