Local installation in debian

Source: Internet
Author: User
How to install local In debian-Debian information of Linux release-details are as follows. When you install a program in debian, the following error message is displayed for Per because the local settings are not configured:

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, it is actually very simple. As long as you execute the following commands, everything will be OK:

Debian :~ # Apt-get install locales
Debian :~ # Dpkg-reconfigure locales
Debian :~ # Locale

The following shows how to execute these commands:

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 1 s (3366kb/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
Precycling packages...
Selecting previusly 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 :~ #

When executing the second command, follow the prompts to select the local you want.

The third command is used to check which local is installed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.