Results 1 to 14 of 14

Thread: Error 404 : kali-security

  1. #1
    Join Date
    2013-Mar
    Posts
    1

    Error 404 : kali-security

    Hello! I am attempting to build a custom Kali iso.
    I have followed the instructions on the Wiki without making any modifications (I wanted to try it first before I attempted to make any actual customizations), however I am getting 404 errors on the kali-security repos:

    W: Failed to fetch http://archive.kali.org/kali-securit...source/Sources 404 Not Found

    W: Failed to fetch http://archive.kali.org/kali-securit...source/Sources 404 Not Found

    W: Failed to fetch http://archive.kali.org/kali-securit...source/Sources 404 Not Found

    W: Failed to fetch http://archive.kali.org/kali-securit...-i386/Packages 404 Not Found

    W: Failed to fetch http://archive.kali.org/kali-securit...-i386/Packages 404 Not Found

    W: Failed to fetch http://archive.kali.org/kali-securit...-i386/Packages 404 Not Found

    I think I know the issue, but I'm not sure how to fix it.
    The problem seems to be that this folder does not exist:
    http://archive.kali.org/kali-securit.../kali-security

    but instead it is:
    http://archive.kali.org/kali-security/dists/kali

    However, I cannot seem to figure out how to change this in whatever scripts are performing the build.

    Any ideas would be very helpful! I am a fan of Kali linux and am very interested in making my own custom iso.

    Thank

  2. No worries: I believe the problem lies with in your sources. Here's the fix,
    In a terminal type: pico /etc/apt/sources.list
    Replace or append to the file,
    Code:
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali-dev main contrib non-free
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali-dev main/debian-installer
    deb-src http://http.kali.org/kali kali-dev main contrib non-free
    
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali main contrib non-free
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali main/debian-installer
    deb-src http://http.kali.org/kali kali main contrib non-free
    
    deb [arch=i386,amd64,armel,armhf] http://security.kali.org/kali-security kali/updates main contrib non-free
    deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
    Control O, and Yes to overwrite, Cntrl X, to exit..
    Then run, "apt-get update" and "apt-get upgrade". Than should do it for you

  3. #3
    Join Date
    2013-Oct
    Posts
    1
    Thansk , works great for me!

  4. #4
    Join Date
    2013-Nov
    Location
    Everett WA
    Posts
    2

    Quote Originally Posted by charonsecurity View Post
    No worries: I believe the problem lies with in your sources. Here's the fix,
    In a terminal type: pico /etc/apt/sources.list
    Replace or append to the file,
    Code:
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali-dev main contrib non-free
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali-dev main/debian-installer
    deb-src http://http.kali.org/kali kali-dev main contrib non-free
    
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali main contrib non-free
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali main/debian-installer
    deb-src http://http.kali.org/kali kali main contrib non-free
    
    deb [arch=i386,amd64,armel,armhf] http://security.kali.org/kali-security kali/updates main contrib non-free
    deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
    Control O, and Yes to overwrite, Cntrl X, to exit..
    Then run, "apt-get update" and "apt-get upgrade". Than should do it for you
    +1

    Thank you C~Security

    Best Regards ...

  5. #5
    Join Date
    2013-Nov
    Location
    Everett WA
    Posts
    2
    +1 Mind you before you attempt this " MAKE SURE YOU HAVE ENOUGH SPACE ! "

    I have a live USB install and umm ran out of space * Fatal error . hehe

    Ill try and do a HD install in the am

    Best Regards

  6. #6
    Join Date
    2014-Apr
    Posts
    1

    Question Sir,Help

    When i press, Ctrl+O it shows "File Name to Write: /etc/apt/sources.list"

  7. #7
    Join Date
    2015-Jan
    Posts
    1
    Actually there is an easy solution to solve this... You doesn't need to follow the step above to change the repo sources. It usually happens when you apt-get update and force stop suddenly or else. If there another line is added including the error above like this "E: Some index files failed to download. They have been ignored, or old ones used instead.", the solution is to take a look on the /var/lib/apt/lists. Check the 'partial' folder if exist. Take a look inside the folder and you'll see some repos that causing the error. For i.e. security.kali.org_kali-security_dists_kali_updates_contrib_source_Sources . Remove the file or 'partial' folder that making an error like that (need root to remove). The problem will be gone after the next apt-get update.

  8. #8

    i tried it, but it didnt work for me, am running the kali linux in vmware and i368

    Quote Originally Posted by charonsecurity View Post
    No worries: I believe the problem lies with in your sources. Here's the fix,
    In a terminal type: pico /etc/apt/sources.list
    Replace or append to the file,
    Code:
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali-dev main contrib non-free
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali-dev main/debian-installer
    deb-src http://http.kali.org/kali kali-dev main contrib non-free
    
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali main contrib non-free
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali main/debian-installer
    deb-src http://http.kali.org/kali kali main contrib non-free
    
    deb [arch=i386,amd64,armel,armhf] http://security.kali.org/kali-security kali/updates main contrib non-free
    deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
    Control O, and Yes to overwrite, Cntrl X, to exit..
    Then run, "apt-get update" and "apt-get upgrade". Than should do it for you


    mine is showing

    Hit http://http.kali.org kali-dev Release.gpg
    Hit http://http.kali.org kali-dev Release
    Get:1 http://http.kali.org kali-dev/main i386 Packages [12.5 MB]
    Get:2 http://http.kali.org kali-dev/contrib i386 Packages [87.8 kB]
    Get:3 http://http.kali.org kali-dev/non-free i386 Packages [141 kB]
    Fetched 12.7 MB in 55s (231 kB/s)
    W: Failed to fetch http://http.kali.org/kali/dists/kali-dev/Release Unable to find expected entry 'deb/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

    E: Some index files failed to download. They have been ignored, or old ones used instead.

  9. #9

    yeah... this didn't work for me

    Quote Originally Posted by charonsecurity View Post
    No worries: I believe the problem lies with in your sources. Here's the fix,
    In a terminal type: pico /etc/apt/sources.list
    Replace or append to the file,
    Code:
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali-dev main contrib non-free
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali-dev main/debian-installer
    deb-src http://http.kali.org/kali kali-dev main contrib non-free
    
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali main contrib non-free
    deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali main/debian-installer
    deb-src http://http.kali.org/kali kali main contrib non-free
    
    deb [arch=i386,amd64,armel,armhf] http://security.kali.org/kali-security kali/updates main contrib non-free
    deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
    Control O, and Yes to overwrite, Cntrl X, to exit..
    Then run, "apt-get update" and "apt-get upgrade". Than should do it for you

    This didn't work well for me. I'm positive that I entered the correct shell code (I copied and pasted it). I am running kali on my raspbery pi. I'm assuming that's what caused the fatal error (over 60000 characters of complaints). If anyone knows a solution that would work, I would love to hear it.

  10. #10

    This didn't work either

    Quote Originally Posted by cr0nz3r0 View Post
    Actually there is an easy solution to solve this... You doesn't need to follow the step above to change the repo sources. It usually happens when you apt-get update and force stop suddenly or else. If there another line is added including the error above like this "E: Some index files failed to download. They have been ignored, or old ones used instead.", the solution is to take a look on the /var/lib/apt/lists. Check the 'partial' folder if exist. Take a look inside the folder and you'll see some repos that causing the error. For i.e. security.kali.org_kali-security_dists_kali_updates_contrib_source_Sources . Remove the file or 'partial' folder that making an error like that (need root to remove). The problem will be gone after the next apt-get update.
    Unlike last time when I got hundreds and hundreds of complaints from Kali when I tried apt-get update, nothing changed after I tried this. Thankfully I made a backup of 'partial' so after I replace that i will be onto the next forum. WHEN I find the solution I will post it here (and if anyone has a solution that they think will work, feel free to post it).

  11. #11
    Join Date
    2016-Apr
    Location
    New Delhi, INDIA
    Posts
    2
    This is a source error,,, Check it once again.

  12. #12
    Join Date
    2016-Apr
    Posts
    1
    I had the same problem..Now fixed it.

  13. #13
    Quote Originally Posted by HelenGreene View Post
    I had the same problem..Now fixed it.
    What was the fix?

  14. #14
    Join Date
    2016-Nov
    Posts
    1
    I have this problem. What was the fix Sumitsharma?

    UPDATE:
    I changed /etc/apt/sources.list and replaced it's contents with the recommended Kali rolling repository with the source package access uncommented, located here:

    http://docs.kali.org/general-use/kal...t-repositories

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

    I then successfully apt updated.
    Last edited by maiki; 2016-11-14 at 09:57. Reason: Merge posts

Similar Threads

  1. Kali Linux as a security risk
    By Jjacec in forum General Archive
    Replies: 8
    Last Post: 2018-12-21, 08:25
  2. Security updates breaks Kali?
    By tower in forum General Archive
    Replies: 2
    Last Post: 2016-01-09, 10:00
  3. "lb build" error kali-security Not Fount
    By He-Ro in forum Building Archive
    Replies: 1
    Last Post: 2013-03-19, 11:21

Posting Permissions

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