Debian下Cannot set LC_CTYPE to default locale: No such file or directory解决方法
生活随笔
收集整理的這篇文章主要介紹了
Debian下Cannot set LC_CTYPE to default locale: No such file or directory解决方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
把語言環境變量改為英文
將Ubuntu系統語言環境改為英文的en_US.UTF-8
查看當前系統語言環境
locale編輯配置文件,將zh_US.UTF-8改為en_US.UTF-8,zh改為en
sudo nano /etc/default/locale LANG="en_US.UTF-8" LANGUAGE="en_US:en"繼續查看更改后的系統語言變量,假設出現下列錯誤。說明沒安裝en_US的local
qii@ubuntu:~$ locale 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 LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=查看系統內安裝的locale
qii@ubuntu:~$ locale -a 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_COLLATE to default locale: No such file or directory C POSIX zh_CN.utf8 zh_SG.utf8看吧。沒裝en_US.UTF-8
安裝en_US.UTF-8
sudo locale-gen en_US.UTF-8再次查看,應該一切正常了。
qii@ubuntu:/usr/share/locales$ locale LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=轉載于:https://www.cnblogs.com/mqxnongmin/p/10694981.html
總結
以上是生活随笔為你收集整理的Debian下Cannot set LC_CTYPE to default locale: No such file or directory解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JAVA 求数组中的最大值
- 下一篇: 第七周作业及其总结