kali 如何配置下载源

打开命令行输入sudo -s进入root权限
kali 如何配置下载源_第1张图片

sudo vi /etc/apt/sources.list
进入ect 文件夹下的,apt下的sources.list文件

kali 如何配置下载源_第2张图片
按e进入此文件在按i插入,删除掉文件夹内的所有东西将以下复制粘贴进去,()里不用复制进去

(中科大)deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.eud.cn/kali kali-rolling main non-free contri

(阿里云)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 http://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

kali 如何配置下载源_第3张图片然后按esc,在输入:wq! 在按下enter也就是回车,在命令行输入apt-get update,等跑完你就可以安装你需要的东西了。

你可能感兴趣的:(linux)