歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

Ubuntu 12.04 創建用戶失敗如何解決

執行命令:

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/

Copyright © Linux教程網 All Rights Reserved