安裝完kali出現中文亂碼

若是在apt-get install 時出現E沒法定位軟件的問題須要更kali系統自帶的軟件源,若是沒有這個問題則直接跳過這步,從安裝locales開始。vim

添加軟件源緩存

vim /etc/apt/sources.list

能夠選擇下面某一個源寫進去字體

#中科大
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
#官方源
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

保存退出wq,而後更新軟件緩存阿里雲

apt-get update

安裝localesspa

apt-get install locales

進入圖形化界面,選擇下面這幾個字符集(空格鍵是選擇,enter是確認)code

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

而後安裝字體blog

apt-get install -y xfonts-intl-chinese ttf-wqy-microhei

最後重啓機器get

reboot

好了,亂碼問題解決了class

相關文章
相關標籤/搜索