View Issue Details

IDProjectCategoryView StatusLast Update
0007557Kali LinuxKali Package Bugpublic2025-07-14 09:36
Reportervatsal gupta Assigned Toarnaudr  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version2021.4 
Summary0007557: Kali Repository error while updating
Description

Hey Dear Kali Developers!

Hope all are good!

I tried updating Kali today and giving error .....Maybe there's a issue with repository...

┌──(kali㉿kali)-[~]
└─$ sudo apt update 100 ⨯
Hit:2 https://repo.protonvpn.com/debian stable InRelease
Get:1 http://ftp.harukasan.org/kali kali-rolling InRelease [30.6 kB]
Get:3 http://ftp.harukasan.org/kali kali-rolling/main amd64 Packages [17.9 MB]
Get:4 http://ftp.harukasan.org/kali kali-rolling/main amd64 Contents (deb) [40.7 MB]
Ign:4 http://ftp.harukasan.org/kali kali-rolling/main amd64 Contents (deb)
Err:4 http://http.kali.org/kali kali-rolling/main amd64 Contents (deb)
File has unexpected size (40741357 != 40722259). Mirror sync in progress? [IP: 118.38.178.199 80]
Err:4 http://http.kali.org/kali kali-rolling/main amd64 Contents (deb)
File has unexpected size (40741357 != 40722259). Mirror sync in progress? [IP: 118.38.178.199 80]
Reading package lists... Done
E: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/main/Contents-amd64 File has unexpected size (40741357 != 40722259). Mirror sync in progress? [IP: 118.38.178.199 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

I'm also providing a png file or image below....

Attached Files
repo-error.png (336,414 bytes)

Activities

arnaudr

arnaudr

2022-02-03 02:59

manager   ~0015682

Hi,

maybe there's a temporary problem with the mirror used by apt, in this case http://ftp.harukasan.org/kali. Does the error still happen today?

Alternatively, you can also configure Kali to get its packages from the Cloudflare CDN rather than the community mirrors. To do that, open a terminal, type kali-tweaks. In the menu, choose "Network Repositories" and then for the Mirrors setting, select "Cloudflare".

vatsal gupta

vatsal gupta

2022-02-03 03:09

reporter   ~0015683

Thanks.... Now it's fixed..... I reinstalled fresh Kali 2-3 time in previous two days... So yesterday it was finally resolved......

Thanks for your support!

arnaudr

arnaudr

2022-02-03 03:25

manager   ~0015684

No worries, have a good day!

Issue History

Date Modified Username Field Change
2022-02-01 10:02 vatsal gupta New Issue
2022-02-01 10:02 vatsal gupta File Added: repo-error.png
2022-02-03 02:59 arnaudr Note Added: 0015682
2022-02-03 03:09 vatsal gupta Note Added: 0015683
2022-02-03 03:25 arnaudr Note Added: 0015684
2022-02-03 03:26 arnaudr Assigned To => arnaudr
2022-02-03 03:26 arnaudr Status new => closed
2022-02-03 03:26 arnaudr Resolution open => no change required
2025-07-14 09:36 g0tmi1k Priority high => normal