红联Linux门户
Linux帮助

阿里云主机--Ubuntu 12.04-创建用户失败的解决方法

发布时间:2016-07-05 16:06:10来源:blog.csdn.net/ljgstudy作者:_吊儿郎当_
闲着没事就是爱折腾,免费阿里云主机一直闲着,今天有空鼓捣了一下。
创建用户的时候出现了一点小问题,写篇文章以备后查。
 
执行命令:
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.linuxdiyf.com/linux/22099.html