Debian系统终端中文乱码的解决方法
1、首先安装中文字体
apt-get update
apt-get install ttf-microsoft-simsun ttf-microsoft-simhei
apt-get install ttf-microsoft-simyou ttf-microsoft-simli
(说明,Debian和Ubuntu以及树莓派使用的是精简后的apt而不是apt-get,不同的版本操作可能不太一样,使用时尝试一下切可)
2、切换选择语言
dpkg-reconfigure locales
进入选择:
zh_CN GB2312
zh_CN.GBK GBK
zh_CN.UTF-8 UTF-8
en_US.UTF-8 UTF-8
apt update
source /etc/default/locale
最后选择时建议选择en_US.UTF-8为默认,重启服务器即可。