解决perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:

  • Post author:
  • Post category:其他


perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = “zh_CN:zh”,

LC_ALL = (unset),

LANG = “zh_CN.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

dpkg-query: package ‘locales’ is not installed and no information is available

Use dpkg –info (= dpkg-deb –info) to examine archive files,

and dpkg –contents (= dpkg-deb –contents) to list their contents.

/usr/sbin/dpkg-reconfigure: locales is not installed

解决这个   在~/.bashrc中添加一句话

export LC_ALL=C

然后source ~/.bashrc 就行了



版权声明:本文为DJH_XING原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。