当前位置: 首页 > 操作系统 > Linux > 正文

Ubuntu 12.04 创建用户失败如何解决

时间:2016-07-22

执行命令:

adduser testuesr

错误提示如下:

perl: warning: Setting locale failed.  
perl: warning: Please check that your locale settings:  
    LANGUAGE = "en_US:en",  
    LC_ALL = (unset),  
    LC_PAPER = "zh_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").

解决方法:

step 1)

vim .bashrc

step 2)

文件末尾追加:

export LC_ALL=C

或者执行命令:

echo "export LC_ALL=C" >> /root/.bashrc

step 3)

最后执行:

source /root/.bashrc

OK, 问题解决~

更多精彩内容:http://www.bianceng.cn/OS/Linux/