0x0 前言

Kali安装完成后,默认是国外官方的更新源,更新速度4kb/s太酸爽了。。。


0x1 把更新源设置为国内阿里云或者中科大的镜像源

命令行:leafpad /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.ustc.edu.cn/kali kali-rolling main contrib non-free

#阿里云
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

#重庆大学
#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


0x2 更新并测试

整体更新:

apt-get update & apt-get upgrade

apt-get dist-upgrade

apt-get clean

软件测试更新:

(1)使用以下命令获取当前NMAP版本。

nmap --version

(2)更新NMAP软件。

apt-get install nmap

(3)再次获取当前NMAP版本号。

nmap --version