View Issue Details

IDProjectCategoryView StatusLast Update
0009255Kali LinuxKali Package Bugpublic2025-07-30 02:01
ReporterJR556 Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Summary0009255: Issue with http.kali.org mirror when creating live build with live-build-config
Description

When attempting to create an iso, the build process fails due to an error with the http.kali.org mirror.

Our last successful build was on 2025-07-20, but builds have been failing since 2025-07-23.

Below is the snip of the error message.

live-boot: core filesystems dm-verity devices utils udev blockdev ftpfs dns.
[2025-07-25 20:42:56] lb chroot_interactive
[2025-07-25 20:42:56] lb chroot_prep remove all mode-archives-chroot
[2025-07-25 20:42:56] lb chroot_archives chroot remove
P: Deconfiguring file /etc/apt/sources.list
Get:1 http://kali.download/kali kali-rolling InRelease [41.5 kB]
Get:2 http://kali.download/kali kali-rolling/non-free Sources [122 kB]
Get:3 http://kali.download/kali kali-rolling/main Sources [17.3 MB]
Get:4 http://kali.download/kali kali-rolling/non-free-firmware Sources [8465 B]
Get:5 http://kali.download/kali kali-rolling/contrib Sources [80.1 kB]
Get:6 http://kali.download/kali kali-rolling/main amd64 Packages [21.0 MB]
Get:7 http://kali.download/kali kali-rolling/main amd64 Contents (deb) [51.4 MB]
Ign:7 http://kali.download/kali kali-rolling/main amd64 Contents (deb)
Get:8 http://kali.download/kali kali-rolling/contrib amd64 Packages [117 kB]
Get:9 http://kali.download/kali kali-rolling/contrib amd64 Contents (deb) [327 kB]
Err:7 http://http.kali.org/kali kali-rolling/main amd64 Contents (deb)
File has unexpected size (51406003 != 51393563). Mirror sync in progress? [IP: 104.17.253.239 80]
Get:10 http://kali.download/kali kali-rolling/non-free amd64 Packages [198 kB]
Get:11 http://kali.download/kali kali-rolling/non-free amd64 Contents (deb) [911 kB]
Err:7 http://http.kali.org/kali kali-rolling/main amd64 Contents (deb)
File has unexpected size (51406003 != 51393563). Mirror sync in progress? [IP: 104.17.253.239 80]
404 Not Found [IP: 54.39.128.230 80]
Get:12 http://kali.download/kali kali-rolling/non-free-firmware amd64 Packages [10.8 kB]
Get:13 http://kali.download/kali kali-rolling/non-free-firmware amd64 Contents (deb) [26.7 kB]
Fetched 40.2 MB in 3s (12.1 MB/s)
Reading package lists...
E: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/main/Contents-amd64 404 Not Found [IP: 54.39.128.230 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: An unexpected failure occurred, exiting...
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists...
Building dependency tree...
Reading state information...
Build of kali-rolling/default/amd64 live image failed (see build.log for details)

Activities

steev

steev

2025-07-29 21:39

manager   ~0020760

What host OS are you running? Are you running this script in a VM? What happens if you set a mirror manually? The error message claims that the mirrors are in the middle of a sync, but if you're hitting this every single time, either you are very unlucky to always be trying to hit the mirrors when they are syncing, or potentially something on your network/ISP side is somehow blocking portions of the sync.

JR556

JR556

2025-07-29 22:33

reporter   ~0020761

What host OS are you running?
Kali 2025.2 fully updated

Are you running this script in a VM?
System 1 - baremetal intel
System 2 - proxmox VM on Intel

What happens if you set a mirror manually?
Have not tried this, using default build.sh script from https://gitlab.com/kalilinux/build-scripts/kali-live

The error message claims that the mirrors are in the middle of a sync, but if you're hitting this every single time, either you are very unlucky to always be trying to hit the mirrors when they are syncing, or potentially something on your network/ISP side is somehow blocking portions of the sync.

I thought this could be the case on system 1, however on system 2 it is directly connected to the internet and i experienced the same issue.

Note: i just re-ran our build script and the issue does not appear for the first of our 2 builds. Maybe a transient issue. No changes internally on script or network configuration.

JR556

JR556

2025-07-30 02:01

reporter   ~0020762

Both builds successfully completed today. No changes have been made since the issues began so this may have been a transient error (or im just unlucky).

Please close.

Issue History

Date Modified Username Field Change
2025-07-26 02:53 JR556 New Issue
2025-07-29 21:39 steev Note Added: 0020760
2025-07-29 22:33 JR556 Note Added: 0020761
2025-07-30 02:01 JR556 Note Added: 0020762