安裝完滲透測試系統kali linux后,默認的只有security這個源,只更新那些集成的安全軟件,不能安裝其他新軟件,官網給出了3類源:
Kali Linux提供了3類軟件源,這些源在世界各地都有鏡像:
- http.kali.org (鏡像列表): 主要安裝包軟件源;
- security.kali.org (鏡像列表): 安全包軟件源;
- cdimage.kali.org (鏡像列表): ISO鏡像源.
當你使用以上的3個域名做源時,會自動連接到離你最近的與官方同步的鏡像.
在列表中,其中 http://mirrors.neusoft.edu.cn/kali 是中國的,來自大連東軟信息學院,速度也挺快
用root權限打開 /etc/apt/sources.list,在最后面加上:
deb http://http.kali.org kali main contrib non-free #deb http://mirrors.neusoft.edu.cn/kali/ kali main contrib non-free
上面是我的配置,注釋掉了國內那個源,可以隨時去掉注釋
debian添加軟件源的這個列表,我試了好久才整明白,具體是這樣的:
1.deb后面跟的是鏡像網址,比如deb http://mirrors.163.com/debian/,網址結尾處是linux發型版的名稱,如gentoo,arch,ubuntu等
2.再往后,跟一個空格,然后跟上相應linux發型版的版本代號,比如debian的squeeze、wheezy、jessie,ubuntu的quantal、raring,
就像這樣deb http://mirrors.163.com/debian/ whezzy
3.再后面,就是具體的來源了:
1) main
: All free software that follows the DFSG (Debian Free Software Guidelines)
都是自由軟件
2) contrib
: Free software that follows DFSG but depends on software in non-free
.
屬於自由軟件但是依賴於非自由軟件
3) non-free
: All kinds of non-free software that doesn't follow the DFSG.
非自由軟件
這三類都給他加上都是空格隔開,deb http://mirrors.163.com/debian/ whezzy main non-free contrib
4.保存,apt-get update 就可以用了