Debian Chinese environment settings (GNOME)

2011-08-19  来源:本站原创  分类:OS  人气:88 

$ Sudo apt-get install locales

$ Sudo dpkg-reconfigure locales
Select the relevant

$ Locale
Often little time, patience wait for a while, and then restart can succeed.

Reference Posts:
http://hi.baidu.com/% B7% D7% E7% A1/blog/item/122efb0377e30e7a3812bb5e.html

When the debian install process, sometimes because there is no set local settings, Per will give the following error:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "zh_CN.UTF-8"
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
To solve this problem is very simple, just run the following few commands, everything will be OK:
debian: ~ # apt-get install locales
debian: ~ # dpkg-reconfigure locales
debian: ~ # locale
Here are a few I execute this command display (part of the command line in bold):
debian: ~ # apt-get install locales
Reading package lists ... Done
Building dependency tree ... Done
The following NEW packages will be installed:
locales
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 3967kB of archives.
After unpacking 9612kB of additional disk space will be used.
Get: 1 http://debian.cn99.com stable / main locales 2.3.6.ds1-13etch2 [3967kB]
Fetched 3967kB in 1s (3106kB / s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "zh_CN.UTF-8"
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
Preconfiguring packages ...
Selecting previously deselected package locales.
(Reading database ... 9213 files and directories currently installed.)
Unpacking locales (from .../locales_2.3.6.ds1-13etch2_all.deb) ...
Setting up locales (2.3.6.ds1-13etch2) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "zh_CN.UTF-8"
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
debian: ~ # dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "zh_CN.UTF-8"
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
/ Usr / bin / locale: Cannot set LC_CTYPE to default locale: No such file or directory
/ Usr / bin / locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/ Usr / bin / locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while) ...
en_US.ISO-8859-1 ... done
en_US.ISO-8859-15 ... done
en_US.UTF-8 ... done
zh_CN.GB2312 ... done
zh_CN.GB18030 ... done
zh_CN.GBK ... done
zh_CN.UTF-8 ... done
zh_HK.BIG5-HKSCS ... done
zh_HK.UTF-8 ... done
zh_SG.GB2312 ... done
zh_SG.GBK ... done
zh_SG.UTF-8 ... done
zh_TW.BIG5 ... done
zh_TW.EUC-TW ... done
zh_TW.UTF-8 ... done
zu_ZA.ISO-8859-1 ... done
zu_ZA.UTF-8 ... done
Generation complete.
debian: ~ # locale
LANG = zh_CN.UTF-8
LC_CTYPE = "zh_CN.UTF-8"
LC_NUMERIC = "zh_CN.UTF-8"
LC_TIME = "zh_CN.UTF-8"
LC_COLLATE = "zh_CN.UTF-8"
LC_MONETARY = "zh_CN.UTF-8"
LC_MESSAGES = "zh_CN.UTF-8"
LC_PAPER = "zh_CN.UTF-8"
LC_NAME = "zh_CN.UTF-8"
LC_ADDRESS = "zh_CN.UTF-8"
LC_TELEPHONE = "zh_CN.UTF-8"
LC_MEASUREMENT = "zh_CN.UTF-8"
LC_IDENTIFICATION = "zh_CN.UTF-8"
LC_ALL =
debian: ~ #
In the implementation of the second command, follow the prompts to select your desired local OK.
The third command is used to see which are installed local.

If that does not need to set LC_ALL = zh_CN.UTF-8

相关文章
  • Debian Chinese environment settings (GNOME) 2011-08-19

    $ Sudo apt-get install locales $ Sudo dpkg-reconfigure locales Select the relevant $ Locale Often little time, patience wait for a while, and then restart can succeed. Reference Posts: http://hi.baidu.com/% B7% D7% E7% A1/blog/item/122efb0377e30e7a38

  • cenos Chinese environment settings http://www.oschina.net/bbs/thread/8273 2010-10-25

    Stick the code here

  • Chinese environment settings linux 2010-12-08

    export LANG = zh_CN.GB2312;

  • Centos Chinese. English system environment settings 2010-08-06

    vim / etc/sysconfig/i18n Chinese environment settings: LANG="zh_CN.GB18030" LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN" SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en" SYSFONT="lat0-sun16" English environmen

  • Chinese environment, the use of PostgreSQL 2011-09-29

    Chinese environment, the use of PostgreSQL [email protected] http://www.redgres.com/web/node/8 While the official documents mentioned coding problems, but relatively simple for the Chinese speaking to a lot of Chinese users of PostgreSQL trouble, thi

  • Qt and S60 environment settings management is 2010-05-01

    Qt and S60 environment settings management is From Forum Nokia Wiki Platform: S60 3rd Edition FP2, S60 5th Edition Categories: Qt Sub Category: Base / System Keywords: QSettings Outline In this paper, Symbian OS, and Qt comparison between the configu

  • JQuery Eclipse development environment settings (Spket) 2010-08-25

    JQuery Eclipse development environment settings (Spket) First need to install Spket. I can see this article for Spket installation. JQuery after the configuration: 1. From JQuery.com developed using the Javascript file to download, as below, be sure

  • java environment settings 2009-10-02

    JAVA_HOME, CLASSPATH, PATH. This is the only three java environment variables. JAVA_HOME points to the JDK installation path by default is installed in C: \ Program Files \ Java \ jdk1.6.0_14, in this path you should be able to find bin, lib, etc. di

  • sqlplus environment settings 2010-04-13

    Log in sql * plus each will be called when the $ ORACLE_HOME / sqlplus / admin / glogin.sql file. We can modify this file so that when they set up each time you log a number of sql * plus environment variables, and the default display of SQL> to disp

  • Chinese environment hp Itanium platform configuration 2010-07-30

    hp Itanium platform to support the Chinese language environment must be configured. profile The user. Profile where you can add the following sentence: export LANG=zh_CN.hp15CN

  • Install the JDK under Linux environment settings and 2011-03-06

    First, start with download jdk (jdk-6u24-linux-i586-rpm.bin), recommended the official website of SUN www.sun.com (the current site has changed, but this site is still valid), download the / usr directory, of course, the line elsewhere. Second, the u

  • Linux environment settings 2011-03-26

    On the bash environment variables, system planning and personal preferences there is a deviation in the case, the user can modify personal settings, not for the system. In the command-line input variables, command aliases are for the login and the se

  • [Record] can be replicated on Appserv the WAMP environment settings 2010-03-09

    Appserv AppServ is a combination of PHP pages Rack Station tools package, of some of the network resources for free rack station repackaged into a single installer to facilitate novice quickly Rack Station , AppServ included software are: Apache, Apa

  • JDK and install the Linux environment settings 2010-12-08

    1. Start downloading jdk (jdk-1_5_0_02-linux-i586.rpm), the official website of recommended SUN www.sun.com, download on the / home directory, of course, the line elsewhere. Into the installation directory # Cd / home # Cp jdk-1_5_0_02-linux-i586.rpm

  • xshell Chinese encoding settings 2011-04-27

    Input: locale Output: LANG = zh_CN.UTF-8 LC_CTYPE = "zh_CN.UTF-8" LC_NUMERIC = "zh_CN.UTF-8" LC_TIME = "zh_CN.UTF-8" LC_COLLATE = "zh_CN.UTF-8" LC_MONETARY = "zh_CN.UTF-8" LC_MESSAGES = "zh_CN.UTF-8&q

  • Oralce the sqlplus environment settings 2011-06-21

    Using sql * plus, it is usually necessary to set the environment, such as page size, the multi-wide, self-definition of the command prompt. These are available through writing a sql script, then configure SQLPATH environment variable, pointing to the

  • Environment settings in RHEL yum 2010-10-12

    Under the apt very easy to use Ubuntu, but unfortunately is now rarely used server operating system Ubuntu, most of them are installed Red Hat Enterprise Linux, RHEL's yum repository to be paid to Red Hat, so it is necessary to upgrade to RHEL CentOS

  • DW environment settings 2010-12-03

    uu

  • environment settings python and coreseek 2011-04-26

    Recently in a project, the technology used is python + coreseek, when the installation coreseek, according to the official website: http://www.coreseek.cn/products-install/install_on_macosx, To [# # install coreseek, mysql installed in advance in ord

  • RHEL, yum environment settings 2010-10-12

    Very easy to use under Ubuntu's apt, but unfortunately now rarely used server operating system Ubuntu, most of them are installed Red Hat Enterprise Linux, RHEL's yum repository to be paid to Red Hat, so it is necessary to upgrade to RHEL CentOS, The