Debian 安装选择了中文环境,但是使用 root 用户显示的却是英文环境,这是因为安装时没有为 root 用户设置本地化。
解除 root 用户中文限制
修改文件:/root/.profile
ini
12345
# 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和LANGUAGE,然后重新连接终端即可。