方法一
dpkg-reconfigure locales
</code> </pre>
用空格键选中en-us utf-8和zh_CN.UTF-8
方法二 编辑
~/.bashrc
或者/etc/profile
,在其末尾加入:export LANG="zh_CN.UTF-8" export LC_CTYPE="zh_CN.UTF-8" </code> </pre> 保存后运行 ` source ~/.bashrc ` 或者 ` source /etc/profile ` ,问题解决