当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 8 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [求助]有关locale出错的问题
帖子发表于 : 2009-01-09 15:30 
头像

注册: 2008-03-09 0:17
帖子: 32
送出感谢: 0 次
接收感谢: 0 次
最近乱鼓捣系统,想在终端tty下显示中文来着,结果出现一下错误:

输入
代码:
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.UTF8
LC_CTYPE="zh.CN.UTF8"
LC_NUMERIC="zh.CN.UTF8"
LC_TIME="zh.CN.UTF8"
LC_COLLATE="zh.CN.UTF8"
LC_MONETARY="zh.CN.UTF8"
LC_MESSAGES="zh.CN.UTF8"
LC_PAPER="zh.CN.UTF8"
LC_NAME="zh.CN.UTF8"
LC_ADDRESS="zh.CN.UTF8"
LC_TELEPHONE="zh.CN.UTF8"
LC_MEASUREMENT="zh.CN.UTF8"
LC_IDENTIFICATION="zh.CN.UTF8"
LC_ALL=


用apt-get安装删除软件时出现以下错误:
代码:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = (unset),
   LANG = "zh.CN.UTF8"
    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
Selecting previously deselected package amule-daemon.
(Reading database ... 128088 files and directories currently installed.)
Unpacking amule-daemon (from .../amule-daemon_2.2.2-1ubuntu1_i386.deb) ...
Processing triggers for man-db ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = (unset),
   LANG = "zh.CN.UTF8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct
manconv: can't set the locale; make sure $LC_* and $LANG are correct
manconv: can't set the locale; make sure $LC_* and $LANG are correct
manconv: can't set the locale; make sure $LC_* and $LANG are correct
manconv: can't set the locale; make sure $LC_* and $LANG are correct
manconv: can't set the locale; make sure $LC_* and $LANG are correct
manconv: can't set the locale; make sure $LC_* and $LANG are correct
manconv: can't set the locale; make sure $LC_* and $LANG are correct
Setting up amule-daemon (2.2.2-1ubuntu1) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = (unset),
   LANG = "zh.CN.UTF8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
 * Not starting aMule daemon, AMULED_USER not set in /etc/default/amule-daemon.


鄙人新手,恳请赐教。


页首
 用户资料  
 
2 楼 
 文章标题 : Re: [求助]有关locale出错的问题
帖子发表于 : 2009-01-09 16:27 
头像

注册: 2006-07-10 16:38
帖子: 176
送出感谢: 0 次
接收感谢: 1
应该是locale设置问题。似乎是你已经破坏了你的locale设置文件 :em01


_________________
http://blog.ranfow.cn/


页首
 用户资料  
 
3 楼 
 文章标题 : Re: [求助]有关locale出错的问题
帖子发表于 : 2009-01-09 16:32 
头像

注册: 2007-09-29 3:09
帖子: 5773
送出感谢: 0 次
接收感谢: 3
locale -a看看


_________________
HUNT Unfortunately No Talent...


页首
 用户资料  
 
4 楼 
 文章标题 : Re: [求助]有关locale出错的问题
帖子发表于 : 2009-01-11 22:48 
头像

注册: 2008-03-09 0:17
帖子: 32
送出感谢: 0 次
接收感谢: 0 次
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
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NG
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
zh_CN
zh_CN.gb18030
zh_CN.gbk
zh_CN.utf8
zh_HK
zh_HK.utf8
zh_SG.utf8
zh_TW
zh_TW.utf8


页首
 用户资料  
 
5 楼 
 文章标题 : Re: [求助]有关locale出错的问题
帖子发表于 : 2009-01-11 22:51 
头像

注册: 2008-03-09 0:17
帖子: 32
送出感谢: 0 次
接收感谢: 0 次
好象是 locale 出现的是 zh.CN
而 locale -a 出现的是zh_CN

和这有关?
我的另一台电脑上locale 出现的是 zh_CN

如何改过来??


页首
 用户资料  
 
6 楼 
 文章标题 : Re: [求助]有关locale出错的问题
帖子发表于 : 2009-01-11 23:06 
头像

注册: 2008-03-09 0:17
帖子: 32
送出感谢: 0 次
接收感谢: 0 次
:em06 新发现,执行 man 命令时出现

代码:
man: can't set the locale; make sure $LC_* and $LANG are correct


页首
 用户资料  
 
7 楼 
 文章标题 : Re: [求助]有关locale出错的问题
帖子发表于 : 2009-01-12 16:43 
头像

注册: 2008-03-09 0:17
帖子: 32
送出感谢: 0 次
接收感谢: 0 次
我重装了系统 :em20


页首
 用户资料  
 
8 楼 
 文章标题 : Re: [求助]有关locale出错的问题
帖子发表于 : 2009-01-12 17:51 
头像

注册: 2007-09-29 3:09
帖子: 5773
送出感谢: 0 次
接收感谢: 3
应该是
zh_CN.utf8或者zh_CN.UTF-8...


_________________
HUNT Unfortunately No Talent...


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 8 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译