顿搜
飞过闲红千叶,夕岸在哪
类目归类
正如标题所示:warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory。
具体表现为以下提示,不一定是zh_CN.UTF-8,但解决办法都类似。
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
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运行以下命令:
apt-get purge locales
apt-get autoclean
apt-get install locales
cd /usr/share/locales
./install-language-pack zh_CH.UTF-8
dpkg-reconfigure locales然后运行以下命令检查是否成功
locale