编辑sources.list文件

终端下管理员模式输入

sudo vim /etc/apt/sources.list

image-20200817171421807

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

# ustc 中科大
# 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-security kali-current/updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free

# kali 官方源
# 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 cdrom:[Kali GNU/Linux 2020.2rc3 _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20200508-14:35]/ kali-rolling contrib main non-free

#deb cdrom:[Kali GNU/Linux 2020.2rc3 _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20200508-14:35]/ kali-rolling contrib main non-free
# 注释掉
# 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

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

清理安装包

sudo apt-get clean
sudo  apt-get autoclean

更新

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade

本文作者: 博主:    文章标题:Kali Linux更换镜像源
本文地址:https://blog.ekimi.cn/pentest/kali-update.html     
版权说明:若无注明,本文皆为“K先森说”原创,转载请保留文章出处。
最后修改:2020 年 08 月 17 日 05 : 18 PM
如果觉得我的文章对你有用,请随意赞赏