Kali Linux 中文方框乱码解决方案

来源:https://blog.csdn.net/u011672712/article/details/103393297

1、安装KALI2019.4版本后会出现乱码问题

 2、更新国内源,使用vim编辑器修改:vim /etc/apt/sources.list添加

#清华大学 [更新源]
deb https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
 
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free

 3、上面编辑完成然后使用执行下面命令

apt-get clean && apt-get update -y

 

 4、在执行下面安装字体

sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-intl-chinese

 5、更改默认的编码,命令窗口输入dpkg-reconfigure locales进入图形界面,选中en_US.UTF-8 UTF-8和zh_CN.UTF-8 UTF-8并将zh_CN.UTF-8 UTF-8选为默认

dpkg-reconfigure locales

 

 

 (tab 最左为确认)

6、reboot重启过后,恢复正常

原文地址:https://www.cnblogs.com/smartisn/p/13985441.html