locale: Cannot set LC_ALL to default locale: No such file or directory
来源:互联网 发布:宁静马景涛 知乎 编辑:程序博客网 时间:2024/05/17 03:18
perl: warning: Setting locale failed.perl: warning: Please check that your locale settings:LANGUAGE = "en_US:en",LC_ALL = (unset),LC_PAPER = "zh_CN.UTF-8",LC_ADDRESS = "zh_CN.UTF-8",LC_MONETARY = "zh_CN.UTF-8",LC_NUMERIC = "zh_CN.UTF-8",LC_TELEPHONE = "zh_CN.UTF-8",LC_IDENTIFICATION = "zh_CN.UTF-8",LC_MEASUREMENT = "zh_CN.UTF-8",LC_TIME = "zh_CN.UTF-8",LC_NAME = "zh_CN.UTF-8",LANG = "en_US.UTF-8"are supported and installed on your system.perl: warning: Falling back to the standard locale ("C").locale: Cannot set LC_ALL to default locale: No such file or directory
网上普遍的解决方法都是:修改/etc/default/locale,增加:
LC_ALL="C"
确实能解决这个问题,但是似乎我有一台不出错的服务器上,并没有设置LC_ALL。强制设置LC_ALL有点粗暴,一定有更好的解决方法。
研究了一下,最佳方法是,修改/var/lib/locales/supported.d/local,追加一行:
zh_CN.UTF-8 UTF-8
然后:
sudo locale-gensudo dpkg-reconfigure locales
就完美解决了。
转载自:http://shen2.cn/2013/07/locale-cannot-set-lc_all-to-default-locale-no-such-file-or-directory/
0 0
- Fix Error - Locale: Cannot Set LC_ALL to default locale: No such file or directory
- locale: Cannot set LC_ALL to default locale: No such file or directory
- debian locale: Cannot set LC_CTYPE to default locale: No such file or directory
- Linux下locale: Cannot set LC_CTYPE to default locale: No such file or directory警告
- Ubuntu locale Cannot set LC_CTYPE to default locale: No such file or directory
- locale: Cannot set LC_CTYPE to default locale: No such file or directory
- 解决Cannot set LC_CTYPE to default locale: No such file or directory
- linux出现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解决方法
- Cannot set LC_CTYPE to default locale: No such file or directory
- warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- locale: No such file or directory问题
- warning: setlocale: LC_CTYPE: cannot change locale (en_US): No such file or directory
- Centos7 -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
- selenium2library 离线安装需另外的包
- 怎样将unity资源窗口中的文件一下全部折叠/打开
- 百度诉360违反爬虫协议案宣判
- varnish代理服务器笔记
- 百度诉360违反爬虫协议案宣判
- locale: Cannot set LC_ALL to default locale: No such file or directory
- Maven常用命令及Maven项目中常见问题
- android IPC通信中的UID和PID识别
- 百度诉360违反爬虫协议案宣判
- 初来乍到,打个招呼!
- 第二篇 AS的选择排序
- 百度诉360违反爬虫协议案宣判
- 百度诉360违反爬虫协议案宣判
- Transitive Closure算法笔记