Ubuntu用root登录后中文界面显示成英文的解决方案

来源:互联网 发布:知乎是什么时候 编辑:程序博客网 时间:2024/06/05 18:39
sudo gedit .profile

# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
fi

mesg n
# Installed by Debian Installer:
#  no localization for root because zh_CN.UTF-8
#  cannot be properly displayed at the Linux console
#LANG=C
#LANGUAGE=C
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"