linux社区爱心援助Linux认证系列教程业界动态站务新闻公司招聘建议留言网址大全LPI专题CISCO专题
设为首页
加入收藏
管理团队
JSP  
JAVA  
PERL  
 您的位置:首页 > article > Linux入门与提高 > 安装与配置 >
栏目导栏
资料搜索
热门文章
·什么是ISO文件
·VMware下Linux的安装及简单设置
·为Canon PIXMA iP1000喷墨打印
·Linux必学60个命令文件处理
·实例解说Linux中fdisk分区使用
·Linux下软件安装详解(图)
·Windows下硬盘安装FC6
·用DVD镜像文件硬盘安装FC5详细
·linux下软件的基本安装和卸载
·Linux下硬盘分区的最佳方案
·Suse Linux最新版本 10.1的 IS
·Ubuntu Linux操作系统安装Luma
·Linux下的软件安装
·FC5,LINUX下ADSL上网设置与安装
·把你的Linux配置成Windows
最新文章
·Fedora 9下使用VirtualBox安装
·Ubuntu Linux 8.04 Vsftp 虚拟
·Weblogic 8.1 for Linux ES3.0
·Ubuntu Linux 8.04下本地安装L
·VMware安装Redhat不能输入密码
·双系统攻略:修复Windows XP引
·Windows Vista硬盘安装Fedora
·在一个硬盘上安装两个Linux操作
·从硬盘安装Fedora-9-i386-DVD
·Ubuntu 8.04下安装配置Tomcat5
·Linux系统下显示多核模式方法
·Ubuntu Linux 8.04下关于字体的
·Linux系统下Autodock 4.0安装与
·SUSE Linux系统BASH下配置JAVA
·Linux kernel2.6.25 CS8900网卡
Google
 
在debian下安装local的问题
[ 作者:  加入时间:2007-11-20 10:41:40  来自:Linux联盟收集整理 ]
在debian下安装程序时,有时候会因为本地设置没有设置好,Per会给出下面的错误提示:xYxLinux联盟
xYxLinux联盟
perl: warning: Setting locale failed.xYxLinux联盟
perl: warning: Please check that your locale settings:xYxLinux联盟
        LANGUAGE = (unset),xYxLinux联盟
        LC_ALL = (unset),xYxLinux联盟
        LANG = "zh_CN.UTF-8"xYxLinux联盟
    are supported and installed on your system.xYxLinux联盟
perl: warning: Falling back to the standard locale ("C").xYxLinux联盟
locale: Cannot set LC_CTYPE to default locale: No such file or directoryxYxLinux联盟
locale: Cannot set LC_MESSAGES to default locale: No such file or directoryxYxLinux联盟
locale: Cannot set LC_ALL to default locale: No such file or directoryxYxLinux联盟
xYxLinux联盟
要解决这个问题,其实很简单,只要执行下面几条命令,一切都会OK:xYxLinux联盟
xYxLinux联盟
debian:~# apt-get install localesxYxLinux联盟
debian:~# dpkg-reconfigure localesxYxLinux联盟
debian:~# localexYxLinux联盟
xYxLinux联盟
下面是我执行这几条命令的显示(粗体部分是命令行):xYxLinux联盟
xYxLinux联盟
debian:~# apt-get install localesxYxLinux联盟
Reading package lists... DonexYxLinux联盟
Building dependency tree... DonexYxLinux联盟
The following NEW packages will be installed:xYxLinux联盟
  localesxYxLinux联盟
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.xYxLinux联盟
Need to get 3967kB of archives.xYxLinux联盟
After unpacking 9612kB of additional disk space will be used.xYxLinux联盟
Get:1 http://debian.cn99.com stable/main locales 2.3.6.ds1-13etch2 [3967kB]xYxLinux联盟
Fetched 3967kB in 1s (3106kB/s)   xYxLinux联盟
perl: warning: Setting locale failed.xYxLinux联盟
perl: warning: Please check that your locale settings:xYxLinux联盟
        LANGUAGE = (unset),xYxLinux联盟
        LC_ALL = (unset),xYxLinux联盟
        LANG = "zh_CN.UTF-8"xYxLinux联盟
    are supported and installed on your system.xYxLinux联盟
perl: warning: Falling back to the standard locale ("C").xYxLinux联盟
locale: Cannot set LC_CTYPE to default locale: No such file or directoryxYxLinux联盟
locale: Cannot set LC_MESSAGES to default locale: No such file or directoryxYxLinux联盟
locale: Cannot set LC_ALL to default locale: No such file or directoryxYxLinux联盟
Preconfiguring packages ...xYxLinux联盟
Selecting previously deselected package locales.xYxLinux联盟
(Reading database ... 9213 files and directories currently installed.)xYxLinux联盟
Unpacking locales (from .../locales_2.3.6.ds1-13etch2_all.deb) ...xYxLinux联盟
Setting up locales (2.3.6.ds1-13etch2) ...xYxLinux联盟
perl: warning: Setting locale failed.xYxLinux联盟
perl: warning: Please check that your locale settings:xYxLinux联盟
        LANGUAGE = (unset),xYxLinux联盟
        LC_ALL = (unset),xYxLinux联盟
        LANG = "zh_CN.UTF-8"xYxLinux联盟
    are supported and installed on your system.xYxLinux联盟
perl: warning: Falling back to the standard locale ("C").xYxLinux联盟
locale: Cannot set LC_CTYPE to default locale: No such file or directoryxYxLinux联盟
locale: Cannot set LC_MESSAGES to default locale: No such file or directoryxYxLinux联盟
locale: Cannot set LC_ALL to default locale: No such file or directoryxYxLinux联盟
debian:~# dpkg-reconfigure localesxYxLinux联盟
perl: warning: Setting locale failed.xYxLinux联盟
perl: warning: Please check that your locale settings:xYxLinux联盟
        LANGUAGE = (unset),xYxLinux联盟
        LC_ALL = (unset),xYxLinux联盟
        LANG = "zh_CN.UTF-8"xYxLinux联盟
    are supported and installed on your system.xYxLinux联盟
perl: warning: Falling back to the standard locale ("C").xYxLinux联盟
locale: Cannot set LC_CTYPE to default locale: No such file or directoryxYxLinux联盟
locale: Cannot set LC_MESSAGES to default locale: No such file or directoryxYxLinux联盟
locale: Cannot set LC_ALL to default locale: No such file or directoryxYxLinux联盟
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directoryxYxLinux联盟
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directoryxYxLinux联盟
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directoryxYxLinux联盟
Generating locales (this might take a while)...xYxLinux联盟
  en_US.ISO-8859-1... donexYxLinux联盟
  en_US.ISO-8859-15... donexYxLinux联盟
  en_US.UTF-8... donexYxLinux联盟
  zh_CN.GB2312... donexYxLinux联盟
  zh_CN.GB18030... donexYxLinux联盟
  zh_CN.GBK... donexYxLinux联盟
  zh_CN.UTF-8... donexYxLinux联盟
  zh_HK.BIG5-HKSCS... donexYxLinux联盟
  zh_HK.UTF-8... donexYxLinux联盟
  zh_SG.GB2312... donexYxLinux联盟
  zh_SG.GBK... donexYxLinux联盟
  zh_SG.UTF-8... donexYxLinux联盟
  zh_TW.BIG5... donexYxLinux联盟
  zh_TW.EUC-TW... donexYxLinux联盟
  zh_TW.UTF-8... donexYxLinux联盟
  zu_ZA.ISO-8859-1... donexYxLinux联盟
  zu_ZA.UTF-8... donexYxLinux联盟
Generation complete.xYxLinux联盟
debian:~# localexYxLinux联盟
LANG=zh_CN.UTF-8xYxLinux联盟
LC_CTYPE="zh_CN.UTF-8"xYxLinux联盟
LC_NUMERIC="zh_CN.UTF-8"xYxLinux联盟
LC_TIME="zh_CN.UTF-8"xYxLinux联盟
LC_COLLATE="zh_CN.UTF-8"xYxLinux联盟
LC_MONETARY="zh_CN.UTF-8"xYxLinux联盟
LC_MESSAGES="zh_CN.UTF-8"xYxLinux联盟
LC_PAPER="zh_CN.UTF-8"xYxLinux联盟
LC_NAME="zh_CN.UTF-8"xYxLinux联盟
LC_ADDRESS="zh_CN.UTF-8"xYxLinux联盟
LC_TELEPHONE="zh_CN.UTF-8"xYxLinux联盟
LC_MEASUREMENT="zh_CN.UTF-8"xYxLinux联盟
LC_IDENTIFICATION="zh_CN.UTF-8"xYxLinux联盟
LC_ALL=xYxLinux联盟
debian:~# xYxLinux联盟
xYxLinux联盟
在执行第二条命令时,按照提示,选择你想要的local就OK了。xYxLinux联盟
第三条命令是用来查看都安装了哪些local。xYxLinux联盟
Linux联盟收集整理 ,转贴请标明原始链接,如有任何疑问欢迎来本站Linux论坛讨论
评论】【加入收藏夹】【 】【打印】【关闭
※ 相关链接
 ·安装Redhat和Debian双linux系统  (2007-11-18 17:48:03)
 ·Debian LINUX 基础知识总结  (2007-11-07 16:46:21)
 ·Debian下编译内核模块的方法  (2007-11-01 10:03:36)
 ·Debian下体验E17  (2007-11-01 10:01:24)
 ·Debian:为Apache启用某个你需要的模块  (2007-10-31 18:06:32)
 ·Debian下Apache2+Mysql5+Php5的安装配置  (2007-10-24 10:32:41)
 ·Debian中vbox的安装  (2007-10-22 10:27:49)
 ·Samba on Debian Linux操作系统应用介绍  (2007-10-08 11:11:40)
 ·Debian Linux 操作系统下JDK的配置方法  (2007-09-27 10:50:50)
 ·debian 下安装 canon 1210 windows共享打印机  (2007-09-20 11:53:16)