1.安装相关的中文支持包

sudo apt-get install language-pack-zh-hant language-pack-zh-hans

2.执行指令

locale-gen

3.修改/etc/profile文件添加如下指令

export LANG=zh_CN.UTF-8

4.执行命令

source /etc/profile

5.查看locale

Ubuntu中文显示为乱码_中文支持