Solution to settinglocalefailed In Debian

Source: Internet
Author: User
The solution to settinglocalefailed In Debian is the Linux Release Technology-Debian information. The following is a detailed description. When you run the command apt-get install ***, the following error messages are displayed:

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 ").

This is because of a problem with your local locale settings.

Modify the locale file and open the file vim/etc/default/locale.

Delete all the content in the file: LANG = en_US.utf8. Make sure that this en_US.utf8 is installed in your system. Otherwise, the problem cannot be solved.

Then run dpkg-reconfigure locales. Select the language you want. Then press Enter and select en_US.utf8. In this way, the above problems can be solved. If you have any questions.

Modify it manually. Enter the following command
Export LC_ALL = "en_US.utf8"
Export LANG = "en_US.utf8"
Export LANGUAGE = "en_US.utf8"
Related Article

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.