kali linux的sudo apt update问题

如若出现以下报错

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
 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值