Results 1 to 3 of 3

Thread: Getting 500 Invalid Header - no iso generated

  1. #1
    Join Date
    2013-Jun
    Posts
    3

    Getting 500 Invalid Header - no iso generated

    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
    Code:
    apt-get update
    apt-get upgrade
    After that i did
    Code:
    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

    Code:
    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

    Code:
    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 ?

  2. #2
    Join Date
    2013-May
    Posts
    4
    Wondering if you ever got this issue resolved. I'm having the same problem trying to build a custom ISO.

  3. #3
    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
    This is a Kali-Linux support forum - not general IT/infosec help.

    Useful Commands: OS, Networking, Hardware, Wi-Fi
    Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
    Hardware: Recommended 802.11 Wireless Cards

    Documentation: http://docs.kali.org/ (Offline PDF version)
    Bugs Reporting & Tool Requests: https://bugs.kali.org/
    Kali Tool List, Versions & Man Pages: https://tools.kali.org/

Similar Threads

  1. kernel header
    By askobasko in forum TroubleShooting Archive
    Replies: 9
    Last Post: 2016-06-09, 22:15
  2. iso not generated from lb build
    By Lensing in forum Building Archive
    Replies: 7
    Last Post: 2014-02-18, 01:11
  3. Replies: 0
    Last Post: 2013-05-18, 11:10
  4. Replies: 0
    Last Post: 2013-05-18, 10:27

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •