Warning: setlocale: LC_CTYPE: cannotchange... problem

Source: Internet
Author: User
Warning: setlocale: LC_CTYPE: cannotchange... the following error occurs when you accidentally log on to the root of the terminal: www.2cto. comwarning: setlocale: LC_CTYPE: cannotchangelocale (en_US.utf8): Nosuch... warning: setlocale: LC_CTYPE: cannot change... the following error occurs when you accidentally log on to the terminal root: www.2cto.com warning: setlocale: LC_CTYPE: cannot change locale (en_US.utf8): No such file or directorywarning: setlocale: LC_NUMERIC: cannot change locale (en_US.utf8): No such file or directorywarning: setlocale: LC_TIME: cannot change locale (region): No such file or directorywarning: setlocale: LC_COLLATE: cannot change locale (region): No such file or directorywarning: setlocale: LC_MESSAGES: cannot change locale (en_US.utf8): No such file or directory. of course, I immediately read "rc. "LOCALE:" In the conf "file. no exception was found. after searching, I found an article from a foreigner and immediately solved the problem, because Archlinux updated the locale package during the update, locale. the gen file is overwritten by me. when I modify it again, I only enable the first few characters starting with "zh". I forgot to open the file starting with en. However, the configuration file is really bad, this default miscellaneous is also commented out, and "rc. conf ", there is a large comment, and the updated pacnew is a comment and no default options ..., finally, let's talk about the solution to put: en_US.UTF-8 UTF-8 en_US ISO-8859-1 find the two, cancel the annotator, and then run "locale-gen" as the root user "...
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.