PDA

View Full Version : Error 404 : kali-security



thunder9861
2013-03-15, 00:33
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-security/dists/kali-security/main/source/Sources 404 Not Found

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

W: Failed to fetch http://archive.kali.org/kali-security/dists/kali-security/non-free/source/Sources 404 Not Found

W: Failed to fetch http://archive.kali.org/kali-security/dists/kali-security/main/binary-i386/Packages 404 Not Found

W: Failed to fetch http://archive.kali.org/kali-security/dists/kali-security/contrib/binary-i386/Packages 404 Not Found

W: Failed to fetch http://archive.kali.org/kali-security/dists/kali-security/non-free/binary-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-security/dists/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

charonsecurity
2013-03-19, 11:17
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,

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

bisnake
2013-10-29, 01:28
Thansk , works great for me!

ModerndayNinja
2013-12-15, 09:19
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,

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 ...

ModerndayNinja
2013-12-15, 09:29
+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

Chinmay
2014-04-24, 11:20
When i press, Ctrl+O it shows "File Name to Write: /etc/apt/sources.list"

cr0nz3r0
2015-01-05, 23:07
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.

stones4semper
2015-11-04, 19:52
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,

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.

fred_fredrickson
2016-01-02, 02:19
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,

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.

fred_fredrickson
2016-01-02, 15:24
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).

Sumitsharma
2016-04-12, 12:15
This is a source error,,, Check it once again.

HelenGreene
2016-04-28, 09:29
I had the same problem..Now fixed it.

RavenDarkblood
2016-10-12, 01:55
I had the same problem..Now fixed it.

What was the fix?

Jan_sab
2016-11-12, 14:54
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/kali-linux-sources-list-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.