Ubuntu 设置locale 编辑/var/lib/locales/supported.d/local 在其中加入你要的locale en_US.UTF-8 UTF-8 zh_CN.UTF-8 UTF-8 zh_CN.GB18030 GB18030 zh_CN.GBK GBK 然后重新生成locale $sudo locale-gen Debian: sudo dpkg-reconfigure locales 编辑/etc/environment,修改其中的LANG为zh_CN.UTF-8 LC_ALL="zh_CN.UTF-8" LANG="zh_CN.UTF-8" 重启X server. [修改时区] 修改时区为东8区(北京、上海) $ sudo dpkg-reconfigure tzdata