1、安装locales
apt install locales -y
2、添加配置
dpkg-reconfigure locales
选择zh_CN.UTF-8 UTF-8

3、查看语言设置
locale
保证LANG
为zh_CN.UTF-8 UTF-8

若不是,可以添加环境变量
export LANG=zh_CN.UTF-8
追加到/etc/profile
文件中,然后再使其生效
source /etc/profile
4、效果
设置完成后重新打开终端,设置成功
原来的显示

现在的显示
