加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

ubuntu出现perl: warning: Falling back to the standard locale

发布时间:2020-12-14 02:35:57 所属栏目:Linux 来源:网络整理
导读:症状: root@gs:~# dpkg-reconfigure locales perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:", LC_ALL = (unset), LANG = "zh_CN.UTF-8" ? ? are supported and installed on your sys

症状:

root@gs:~# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:",
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
Generating locales...
? en_AG.UTF-8... up-to-date
? en_AU.UTF-8... up-to-date
? en_BW.UTF-8... up-to-date
? en_CA.UTF-8... up-to-date
? en_DK.UTF-8... up-to-date
? en_GB.UTF-8... up-to-date
? en_HK.UTF-8... up-to-date
? en_IE.UTF-8... up-to-date
? en_IN.UTF-8... up-to-date
? en_NG.UTF-8... up-to-date
? en_NZ.UTF-8... up-to-date
? en_PH.UTF-8... up-to-date
? en_SG.UTF-8... up-to-date
? en_US.UTF-8... up-to-date
? en_ZA.UTF-8... up-to-date
? en_ZM.UTF-8... up-to-date
? en_ZW.UTF-8... up-to-date
? zh_CN.UTF-8... done
Generation complete.

解决办法:

root@gs:~# echo "export LC_ALL=C" >> /root/.bashrc
root@gs:~# source /root/.bashrc
root@gs:~# sudo dpkg-reconfigure locales

搞定

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读