PDA

View Full Version : Getting 500 Invalid Header - no iso generated



samtech
2014-12-06, 09:20
Hi,
I am trying to generate custom kali image with KDE for latest kali release 1.0.9a.
To do that, I followed the instructions from kali official docs.

Before starting, i did following and there were no errors

apt-get update
apt-get upgrade

After that i did

lb config --architecture amd64
...
...
lb build

Everything went well but at the last i get 500 Invalid Header error and no iso generated.

Here is output of tail -50 binary.log


root@kali9:~/live-build-config# tail -50 binary.log
[2014-12-06 14:39:14] lb chroot_interactive
[2014-12-06 14:39:15] lb chroot_archives chroot remove
P: Deconfiguring file /etc/apt/sources.list
Get:1 http://http.kali.org kali Release.gpg [836 B]
Get:2 http://security.kali.org kali/updates Release.gpg [836 B]
Get:3 http://http.kali.org kali Release [21.1 kB]
Get:4 http://security.kali.org kali/updates Release [11.0 kB]
Get:5 http://http.kali.org kali/main Sources [7545 kB]
Get:6 http://security.kali.org kali/updates/main Sources [129 kB]
Err http://security.kali.org kali/updates/contrib Sources
500 Invalid header
Err http://security.kali.org kali/updates/non-free Sources
500 Invalid header
Err http://security.kali.org kali/updates/main amd64 Packages
500 Invalid header
Err http://security.kali.org kali/updates/contrib amd64 Packages
500 Invalid header
Err http://security.kali.org kali/updates/non-free amd64 Packages
500 Invalid header
Ign http://security.kali.org kali/updates/contrib Translation-en
Ign http://security.kali.org kali/updates/main Translation-en
Ign http://security.kali.org kali/updates/non-free Translation-en
Get:7 http://http.kali.org kali/contrib Sources [56.9 kB]
Get:8 http://http.kali.org kali/non-free Sources [118 kB]
Get:9 http://http.kali.org kali/main amd64 Packages [8449 kB]
Get:10 http://http.kali.org kali/contrib amd64 Packages [57.1 kB]
Err http://http.kali.org kali/non-free amd64 Packages
500 Invalid header
Ign http://http.kali.org kali/contrib Translation-en
Ign http://http.kali.org kali/main Translation-en
Ign http://http.kali.org kali/non-free Translation-en
Fetched 16.4 MB in 3min 52s (70.5 kB/s)
W: Failed to fetch http://http.kali.org/kali/dists/kali/non-free/binary-amd64/Packages 500 Invalid header

W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/contrib/source/Sources 500 Invalid header

W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/non-free/source/Sources 500 Invalid header

W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/main/binary-amd64/Packages 500 Invalid header

W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/contrib/binary-amd64/Packages 500 Invalid header

W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/non-free/binary-amd64/Packages 500 Invalid header

E: Some index files failed to download. They have been ignored, or old ones used instead.
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists...
Building dependency tree...
Reading state information...


and here is my sources.list


deb http://archive.kali.org/kali kali main non-free contrib
deb-src http://archive.kali.org/kali kali main non-free contrib

## Security updates
#deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://archive.kali.org/kali-security kali/updates main contrib non-free

Can someone help me to get out of that 500 Invalid header error ?

rfischman
2015-04-02, 01:33
Wondering if you ever got this issue resolved. I'm having the same problem trying to build a custom ISO.

g0tmi1k
2015-04-13, 17:47
My guess is that your local mirror is having issues.
You can find out which mirror your using at the following URL: http://http.kali.org/README.mirrorlist