Perl语言环境警告Debian

Perl语言环境警告Debian,perl,warnings,debian,locale,Perl,Warnings,Debian,Locale,我一直收到这个消息。我正在VPS上运行Debian。我尝试了很多通过谷歌找到的解决方案,但都没有效果。我该怎么办?在Debian中配置语言环境:试着直接设置语言环境,这样在Ubuntu 10.04上对我很有效,只需根据您的需要定制语言环境: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL =

我一直收到这个消息。我正在VPS上运行Debian。我尝试了很多通过谷歌找到的解决方案,但都没有效果。我该怎么办?

在Debian中配置语言环境:

试着直接设置语言环境,这样在Ubuntu 10.04上对我很有效,只需根据您的需要定制语言环境:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_CA.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
然后:

root@hostname:~# export LANGUAGE=en_US.UTF-8
root@hostname:~# export LANG=en_US.UTF-8
root@hostname:~# export LC_ALL=en_US.UTF-8
root@hostname:~# locale-gen en_US.UTF-8

希望这能有所帮助

使用localgen生成您的区域设置。我已经运行了locale gen并收到了相同的结果。编辑您的
/etc/locale.gen
,添加
en_CA.UTF-8
。或者重新配置您的区域设置包这可能属于SuperUser或ServerFault。的副本
root@hostname:~# dpkg-reconfigure locales