Ubuntu 12.04 Create user failure how to solve

Source: Internet
Author: User
Tags locale

To execute a command:

AddUser TESTUESR

The error prompts are as follows:

Perl:warning:Setting locale failed.  
Perl:warning:Please Check that your locale settings:  
    LANGUAGE = "En_us:en",  
    lc_all = (unset),  
    lc_paper = "en _cn. UTF-8 ",  
    lc_address =" ZH_CN. UTF-8 ",  
    lc_monetary =" ZH_CN. UTF-8 ",  
    lc_numeric =" ZH_CN. UTF-8 ",  
    lc_telephone =" ZH_CN. UTF-8 ",  
    lc_identification =" ZH_CN. UTF-8 ",  
    lc_measurement =" ZH_CN. UTF-8 ",  
    lc_time =" ZH_CN. UTF-8 ",  
    lc_name =" ZH_CN. UTF-8 ",  
    LANG =" en_US. UTF-8 "  
    are supported and installed on your system.  
Perl:warning:Falling back to the standard locale ("C").

Workaround:

Step 1)

Vim. BASHRC

Step 2)

Append at end of file:

Export Lc_all=c

or execute the command:

echo "Export Lc_all=c" >>/ROOT/.BASHRC

Step 3)

Final execution:

Source/root/.bashrc

OK, problem solved ~

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

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.