如若出现以下报错
File has unexpected size (44701813 != 44702294). Mirror sync in progress? [IP: 219.216.128.25 80]
Err:3 http://http.kali.org/kali kali-rolling/main amd64 Contents (deb)
File has unexpected size (44701813 != 44702294). Mirror sync in progress? [IP: 219.216.128.25 80]
Fetched 41.2 kB in 2s (16.9 kB/s)
Reading package lists... Done
E: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/main/Contents-amd64 File has unexpected size (44701813 != 44702294). Mirror sync in progress? [IP: 219.216.128.25 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
更换软件源镜像:在你的Kali Linux系统中,编辑/etc/apt/sources.list
文件,将默认的软件源链接更换为其他可用的镜像服务器。你可以在Kali Linux官方网站或其他可信来源中找到可用的镜像服务器列表。
vim
/etc/apt/sources.list
随后将http://http.kali.org/kali
替换为新的镜像服务器链接,也许会是别的http网站。可以在前面加上‘#’进行注掉,或者直接删掉。换上新的软件源镜像。
KALI更新源(常用)
#清华大学
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.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.aliyun.com/kali-security kali/updates main contrib non-free //在更新过程中可能会报错,如有,将该条注释#中科大
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.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://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://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