locale.Error: unsupported locale setting
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-04-26
Question:
[root@linux ~]# setup Traceback (most recent call last): File "/usr/sbin/system-config-network-tui", line 20, in <module> from netconfpkg import NC_functions File "/usr/share/system-config-network/netconfpkg/NC_functions.py", line 38, in <module> locale.setlocale(locale.LC_ALL, "") File "/usr/lib/python2.5/locale.py", line 478, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting Repay: [root@linux sbin]# 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=zh_CN.UTF-8 LC_CTYPE="en" LC_NUMERIC="en" LC_TIME="en" LC_COLLATE="en" LC_MONETARY="en" LC_MESSAGES="en" LC_PAPER="en" LC_NAME="en" LC_ADDRESS="en" LC_TELEPHONE="en" LC_MEASUREMENT="en" LC_IDENTIFICATION="en" LC_ALL=en [root@linux ~]# export LC_ALL=C [root@linux sbin]# locale LANG=zh_CN.UTF-8 LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL=C [root@linux ~]# setup ----------------------------------------------------- Then it runs well. fyi:http://hi.baidu.com/9812658/blog/item/ede5df1c068b10ff1bd576a1.html
|
|
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于locale.Error: unsupported locale setting的所有评论