1、安装软件leafpad
sudo apt install leafpad
更新配置源
leafpad /etc/apt/sources.list
不安装leafpad使用自带的vim也行
vim /etc/apt/sources.list ##如果执行不了换root用户
添加源(加到文件末尾,保存即可)
#中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
#阿里云
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
#清华大学
deb http://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
#浙大
deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
#东软大学
deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
汉化
1.打开终端输入命令
sudo dpkg-reconfigure locales
这时可能要输密码。
2.然后选择字符编码: en_US.UTF-8(要完全汉化的话把这个去掉,如果只是想解决中文乱码就留着)、zh_CN.UTF-8 (用空格选定接着选择字符: zh_CN.UTF-8)
3.安装字体
sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
4.重启,就发现是中文le