kali 根目录中文乱码

1、设置编码:dpkg-reconfigure locales

选择

en_US.UTF-8 UTF-8
zh_CN GB2312
zh_CN.GBK GBK
zh_CN.UTF-8 UTF-8

2、安装字体:
apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
4、安装字体过程中报错“unable to locate package xxx”
vim /etc/apt/sources.list,文件末尾加上

deb http://http.kali.org/kali kali-rolling main non-free contrib

deb-src http://http.kali.org/kali kali-rolling main non-free contrib

后保存并退出

5、更新

apt-get update

apt-get upgrade

再次执行步骤2后,重启reboot

posted @ 2019-12-10 13:16  水工  阅读(659)  评论(0编辑  收藏  举报