kali国内源
kali国内源
#中科大
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.tencent.com/kali/ kali-rolling main contrib non-free
deb-src http://mirrors.tencent.com/kali/ kali-rolling main contrib non-free
Sources.list Format
deb http://http.kali.org/kali kali-rolling main contrib non-free
<Archive> <Mirror> <Branch> <Components>
- Archive is going to be
deb
(Regular Binary) ordeb-src
(Source), depending if you want a package or the source of the package. - Mirror should be
http://http.kali.org/kali
as this is our load balancer, which will direct you to best mirror. - Branch is what version of Kali you wish to use.
- Components are what packages you wish to use, based on the Debian Free Software Guidelines (DFSG). Kali defaults to everything.
——————
注:
若出现错误“获取失败;某个文件尺寸不符;镜像正在更新?”,导致无法更新软件包列表。屏蔽掉相应的deb源即可,只保留原码仓库deb-src。
这不是我们自身的问题,是镜像源的问题,一般过段时间就正常了,取消屏蔽再更新即可。
或者可以尝试kali官方源(它会根据IP地址自动将源转换为最合适的源,但镜像源均不在国内。国内源并非官方设置的镜像源,会定期与官方源同步,内容没有差别):
deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
下面链接可以查看离你最近的镜像源,以IP地址为判断依据,与官方源自动转换的效果相同:
http://http.kali.org/README.mirrorlist
21:35:41 2021-06-14