Hello Hackers / Pentesters / and Kali Linux Users, Lets today FIX KALI LINUX SLOW UPDATE. We have been using Kali Linux for some time now and we might be wondering the reason for a very slow Update process even on fast Internet connections. Well not now, here is the fix in few very simple steps.
Edit your sources.list located at /etc/apt/sources.list , in terminal type
sudo gedit etc/apt/sources.list
From the Countries Mirror List select the one with the least Prio, Less Prio Faster Response
We have to do slight editing in the URL of the mirror we select. Like the URL of selected Mirror is – https://mirrors.ocf.berkeley.edu/kali/README
We Strip it to https://mirrors.ocf.berkeley.edu/kali , that is remove the parts of url after this , we remove /README nad it is only – https://mirrors.ocf.berkeley.edu/kali
You can check and change the difference in http and https and accordingly make it
NOTE :The https is now supported in apt and it will prevent any ISP / application eavesdropping on what packages your are downloading, you can opt HTTPS as you think, doesnot matters in case of speed much, some might say https will not let your ISP throttle the speed
Now in Source List Replace the default Kali Linux Rolling Repository URL with the choice of your Mirror List URL
New Mirror List Faster Updates # See the URL Changed
deb http://mirrors.ocf.berkeley.edu/kali kali-rolling main non-free contrib
deb-src http://mirrors.ocf.berkeley.edu/kali kali-rolling main non-free contrib
Now when you did the steps right, only the new/changed mirror should be there not the old else it will fetch for the list twice.
Chnage your Default DNS to something faster Like CloudFlare DNS or Google DNS, the default DNS may not be as fast, so change it to cloudflare DNS and save the file.
## Cloud Flare ## nameserver 220.127.116.11 nameserver 18.104.22.168 ## Google DNS ## nameserver 22.214.171.124 nameserver 126.96.36.199 ## OpenDNS ## nameserver 188.8.131.52 nameserver 184.108.40.206
And last but not the least , always clean the apt cache before you start so in terminal type – apt clean
Now in terminal you can Hit Update and Upgrade command and see the improved speed.
sudo apt-get update && apt-get upgrade
Now you can see significant difference in speed when downloading updates, Thank you for reading and share this article to help your friends too suffering with slow Kali Linux update