0

I'm not able to run sudo apt-get update, keep getting the following error:

#apt-get update
Ign:1 http://kali.download/kali kali-rolling InRelease
Ign:1 http://kali.download/kali kali-rolling InRelease
Ign:1 http://kali.download/kali kali-rolling InRelease
Err:1 http://kali.download/kali kali-rolling InRelease
  Could not resolve 'kali.download'
Reading package lists... Done
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease  Could not resolve 'kali.download'
W: Some index files failed to download. They have been ignored, or old ones used instead.

I've seen in other posts that it could be solved for them by modifying the etc/apt/sources.list adding "deb http://http.kali.org/kali kali-last-snapshot main contrib non-free" or "deb https://http.kali.org/kali kali-rolling main contrib non-free".

I've tried this solution, but it did not solve my issue.

Also I've notices usually this error in other users can't fetch kali.org, but in my case it is kali.download.

I'm able to see in the browser the index of http://http.kali.org/kali/dists/kali-rolling properly, but can't download InRelease.

Any hints on this?

9
  • 2
    Try this solution
    – Ramhound
    Commented Sep 1, 2023 at 17:15
  • Hi Ramhound, indeed I had tried that one before opening the question. I tried all 3 solutions but still getting the same error as the one included in the original post :(
    – Ody
    Commented Sep 1, 2023 at 17:37
  • Can you ping kali.download? You absolutely should be able to if you can��t then you have a DNS problem
    – Ramhound
    Commented Sep 1, 2023 at 17:46
  • It's true I can't ping kali.download even tho I can ping kali.org, but I have changed the DNS to googles (8.8.8.8) and still getting the same. Any tip?
    – Ody
    Commented Sep 1, 2023 at 17:53
  • Disable the firewall ?
    – harrymc
    Commented Sep 1, 2023 at 18:01

3 Answers 3

3

Error: While trying to run apt update, if fails and gives the error:

Ign:1 http://kali.download/kali kali-rolling InRelease
Ign:1 http://kali.download/kali kali-rolling InRelease
Ign:1 http://kali.download/kali kali-rolling InRelease
Err:1 http://kali.download/kali kali-rolling InRelease
  Could not resolve 'kali.download'
Reading package lists... Done
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease  Could not resolve 'kali.download'
W: Some index files failed to download. They have been ignored, or old ones used instead.

To review if it is the same cause, run the following command:

nslookup kali.download 8.8.8.8

And it should give an output like the following:

Server:         212.166.132.192
Address:        212.166.132.192#53

Non-authoritative answer:
kali.download   canonical name = security.mac.vodafone.es.

To solve it you should deactivate the 'SecureNet' feature from your ISP client platform.

0

In case you were like me, having the /etc/apt/source.list with https instead of plain http was the issue.

Removing the s did the job for me.

1
  • There should be no need to use http instead of https these days Commented Feb 12 at 16:23
0

I'm able to resolve this my replacing https inplace of http in the /etc/apt/source.list

This is my source.list

deb https://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware
deb https://http.kali.org/kali kali-last-snapshot main contrib non-free non-free-firmware
deb https://http.kali.org/kali kali-experimental main contrib non-free non-free-firmware
deb https://http.kali.org/kali kali-bleeding-edge main contrib non-free non-free-firmware
deb-src https://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware

I'm also using WSL2.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .