LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 7854|回复: 5

[已解决] perl: warning: Setting locale failed.

[复制链接]
发表于 2007-11-25 10:53:06 | 显示全部楼层 |阅读模式
sudo apt-get install xxx

E: Couldn't configure pre-depend python-central for python-apt, probably a dependency cycle.

z@xubuntu:~$ sudo im-switch -s scim-xim -z default

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_IE.UTF-8@euro",
        LC_ALL = (unset),
        LANG = "en_IE.UTF-8@euro"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
No alternatives defined for language default


now, i can't use scim, so ...

Can someone give me a few words of advice?

thx.
发表于 2007-11-25 14:49:45 | 显示全部楼层
Do you have scim installed ?   It should be installed by default.

So, all you have to do is install Chinese Language Support.  Try System->Administration->Language Support
And add Chinese support there.
回复 支持 反对

使用道具 举报

发表于 2007-11-25 20:00:03 | 显示全部楼层
第一个问题可能比较复杂,你先看看 dpkg --list |grep python-central 和 dpkg --list |grep python-apt,是不是已经正确配置。如果没有,可以重新配置一下。

问题二,是你的区域设置的问题。试试通过dpkg-reconfigure locale,设置locale为zh_CN.UTF-8,如果没有这个选项,可以先安装language-support-zh。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-25 22:47:30 | 显示全部楼层
Post by lincomet;1787551
第一个问题可能比较复杂,你先看看 dpkg --list |grep python-central 和 dpkg --list |grep python-apt,是不是已经正确配置。如果没有,可以重新配置一下。

问题二,是你的区域设置的问题。试试通过dpkg-reconfigure locale,设置locale为zh_CN.UTF-8,如果没有这个选项,可以先安装language-support-zh。


照着打的。
1
$sudo dpkg --list | grep python-central
ii    python-central    0.5.15ubuntu2
           register and build utility for Python packag

$sudo dpkg --list | grep python-apt
ii    python-apt        0.7.3.1ubuntu4
          Python interface to libapt-pkg

2
$sudo dpkg-reconfigure locale
perl:warning:Setting locale failed.
perl:warninglease check that your locale settings:
         LANGUAGE="zh_CN:zh:en_US:en",
         LC_ALL=(unset),
         LANG="zh_CN,UTF-8"
    are supported and installed on your system.
perl:warning:Falling back to the standard locale ("C").
local:Cannot set LC_ALL to default locale: No such file or directory
Package 'locale' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: locale is not installed


a.设置locale为zh_CN.UTF-8,如何做?
b.网络不好,明天试apt-get install language-support-zh
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-28 10:39:39 | 显示全部楼层
thanks all very much.

The problem has been resoluted.
but I can't rember all step.

There are the senior of the commands in terminal.

~$sudo apt-get install language-support-zh

~$sudo dpkg-reconfigure -a locale

~$sudo  vi /etc/environment

按照顺序加入代码,
LC_ALL="zh_CN.UTF-8"
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN.UTF-8:zh:en_US:en"

CTRL + ALT + Backspace or reboot .
回复 支持 反对

使用道具 举报

发表于 2008-1-2 12:58:18 | 显示全部楼层
谢谢楼上的帮助
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表