1.参考 /usr/share/i18n/SUPPORTED格式编辑/var/lib/locales/supported.d/local nano /var/lib/locales/supported.d/local

如: more /var/lib/locales/supported.d/local zh_CN.UTF-8 UTF-8 en_US.UTF-8 UTF-8 zh_CN.GB18030 GB18030

2.生成locale(自动保存在/usr/lib/locale/中) locale-gen

3.修改locale vi /etc/environment 把 LANG=“zh_CN.UTF-8” 改成 LANG=“zh_CN.GB18030”

more /etc/environment PATH=“/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11: /usr/games” #LANG=“zh_CN.UTF-8” LANG=“zh_CN.GB18030” LANGUAGE=“zh_CN:zh:en_US:en”