Checking / restoring / cleaning Kali Linux repositories
Original sources of applications (repositories) are the main key to the health of your Kali Linux.
The warning that changing/adding new repositories, as a rule, kills the system is on the official website.
Numerous experiences indicate that a huge number of problems are caused by errors in the sources of applications. If the standard Kali Linux instructions that work for most other users do not work for you, then 99% are due to modified kali repositories.
The most important thing in kali linux sources list is this line:
deb https://http.kali.org/kali kali-rolling main non-free contrib
and there were no third-party application sources.
In Kali Linux, application sources are listed in the /etc/apt/sources.list file . The normal, default content for kali sources list is as follows:
root@Kalitut:~# cat /etc/apt/sources.list
deb https://http.kali.org/kali kali-rolling main non-free contrib
# deb-src https://http.kali.org/kali kali-rolling main non-free contrib
if your file doesn’t look like this then type this command in your terminal:
echo -e "deb https://http.kali.org/kali kali-rolling main non-free contrib" > /etc/apt/sources.list
This command will completely wipe the /etc/apt/sources.list file and add one line to it (you can do it manually following those commands :
leafpad /etc/apt/sources.list
Delete all the lines in your Repository file and add just add this one:
deb https://http.kali.org/kali kali-rolling main non-free contrib
Now you can update and upgrade to do so follow those commands:
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
and you can follow this video showing the same steps:
wow
much thanks you really helped me!
I’ve followed the steps described here but I still get a “temporary resolution error of «http.kali.org»” which prevents me from updating. Any idea on what to do to solve this issue?
Tried everything above and still getting the same “failure to fetch”
im sorry to hear that can i see your log data
I followed this as well and i can’t upgrade or install update files. I made a new machine and it’s the same issue.
Still not updating…
Getting this error :-
sudo apt update
Ign:1 https://http.kali.org/kali kali-rolling InRelease
Ign:1 https://http.kali.org/kali kali-rolling InRelease
Ign:1 https://http.kali.org/kali kali-rolling InRelease
Err:1 https://http.kali.org/kali kali-rolling InRelease
Could not connect to http.kali.org:443 (192.99.200.113), connection timed out
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
All packages are up to date.
W: Failed to fetch https://http.kali.org/kali/dists/kali-rolling/InRelease Could not connect to http.kali.org:443 (192.99.200.113), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
Failed to fetch https://http.kali.org/kali/dists/kali-rolling/InRelease Could not handshake: Error in the pull function. [IP: Myproxyserver 8080]
you are an absolute legend lad
same problem
Ign:1 https://http.kali.org/kali kali-rolling InRelease
Ign:1 https://http.kali.org/kali kali-rolling InRelease
Ign:1 https://http.kali.org/kali kali-rolling InRelease
Err:1 https://http.kali.org/kali kali-rolling InRelease
Could not connect to http.kali.org:443 (192.99.200.113), connection timed out
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
All packages are up to date.
W: Failed to fetch https://http.kali.org/kali/dists/kali-rolling/InRelease Could not connect to http.kali.org:443 (192.99.200.113), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
Thanks 👍
Worked for me