View Full Version : apt-get update running very slow
I have a fresh Kali Installation of 2016.1. I have the following in my sources.list
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
When I run apt-get update I get the following output:
Hit:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease
Get:2 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Packages [13.5 MB]
...
It works but the speed is very very slow in bytes per second. As far as I remember I didn't chose any mirror nor during the installation neither now. It's a fresh install. So, why is it so slow? I had 2.0 sana earlier and in that the update was very very fast.
Please help!
Change HTTP to REPO in your sources list
leafpad /etc/apt/sources.list
instead of:
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
use:
deb http://repo.kali.org/kali kali-rolling main contrib non-free
deb-src http://repo.kali.org/kali kali-rolling main contrib non-free
make sure you have fast internet connection
mine is working well with the default sources.list
I have the same problem and I have a great internet connection that gives 1-2 mbps download speed
The solution that inkbird posted solved my problem. Im now getting 7mb/s. I was getting just kb/s. Thanks!!
Thanks men it is working perfectly. I got nice speed as previously i'm getting.
dazedvader
2017-11-03, 08:40
inkbird's fix worked for me. Getting 10 mbps now :)
http://http.kali.org/kali redirects you to the mirror which is the closest to you.
http://repo.kali.org/kali is the official repo server of kali linux so it is supposed to be the fastest among mirrors. I think mirrors are volunteers and they go up and down and sometimes slow with time.
ghost-287
2017-11-13, 18:18
you can test with: apt-fast (https://github.com/ilikenwf/apt-fast)
you can test with: apt-fast (https://github.com/ilikenwf/apt-fast)
Is it working for you?
masterKey
2017-11-27, 04:30
cool! it worked for me.I have a connection of 4Mbps but I was getting only 25Kbps...It sucks
mehrajwani712
2017-11-29, 16:26
It is working for me too now! However I am just new to Linux Kali.... and earlier my source list contained some sites for some Taiwan.... and after running apt-get update command and rebooted the system the whole system was damaged and I was not able to see the Linux coming.... I reinstallled the same and tried to figure out what went wrong and came to know about source list.... after changing lot of times it was showing same taiwan thing again and again.... then I used the above posted http://repo.kali.org/kali.... Just have this question is it safe now?
It is working for me too now! However I am just new to Linux Kali.... and earlier my source list contained some sites for some Taiwan.... and after running apt-get update command and rebooted the system the whole system was damaged and I was not able to see the Linux coming.... I reinstallled the same and tried to figure out what went wrong and came to know about source list.... after changing lot of times it was showing same taiwan thing again and again.... then I used the above posted http://repo.kali.org/kali.... Just have this question is it safe now?
There should only be one entry of repository in your sources.list. Multiple entries or duplicate entries can make kali crash again. The repository shown in this thread is official kali repo. Make sure that all other links in your sources.list are commented out using #.
The one from taiwan is the kali linux mirror set up by volunteers. Mirrors are closest to your geographical region and they reduce latency.
Anonymous4Ever
2018-02-06, 06:13
repo.kali.org was working absolutely fine for me. But for the last week or two, it prompts that its forbidden. So I edited my sources.lst file to http.kali.org and I am back to slow upgrades :( Am I the only one facing this ?
repo.kali.org was working absolutely fine for me. But for the last week or two, it prompts that its forbidden. So I edited my sources.lst file to http.kali.org and I am back to slow upgrades :( Am I the only one facing this ?
Switch to repo.kali.org again.
Anonymous4Ever
2018-02-10, 05:44
Switch to repo.kali.org again.
I have been trying daily. But no success no far. repo not working. It throws error "403 Forbidden [IP: 144.217.77.182 80]". I am quite sure there is no firewall on my network preventing me reaching repo as i have tried from two different networks.
I'd work my way down this list:
http://http.kali.org/README.mirrorlist
and go with the fastest.
Cybo_Freak
2018-02-16, 06:20
Change HTTP to REPO in your sources list
leafpad /etc/apt/sources.list
instead of:
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
use:
deb http://repo.kali.org/kali kali-rolling main contrib non-free
deb-src http://repo.kali.org/kali kali-rolling main contrib non-free
Bro I tried that but when I run apt-get upgrade after that it still seems to be pretty slow (40kb/s)...😐
UPDATE 1:
When I do this there seems to be no installation at all.
It shows that I've got 0 packages installed.
What may I do?
UPDATE 2:
If none of those tricks work like it did to me do this...
Change the http part in "http://http.kali.org/kali"
to "https://http.kali.org/kali"
aks826368
2018-02-17, 09:15
earlier it was working fine, but now it is showing
error 403 Forbidden
Select a mirror from here and keep the fastest one.
http://http.kali.org/README.mirrorlist
Comment other entries before adding a mirror. There should only be one repository active at a time.
apt update && apt full-upgrade
Err:1 http://repo.kali.org/kali kali-rolling InRelease
403 Forbidden
Reading package lists... Done
E: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease 403 Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.
Change HTTP to REPO in your sources list
leafpad /etc/apt/sources.list
instead of:
deb http://http (http://<strong>http</strong>).kali.org/kali kali-rolling main contrib non-free
deb-src http://http (http://<strong>http</strong>).kali.org/kali kali-rolling main contrib non-free
use:
deb http://repo (http://<strong>repo</strong>).kali.org/kali kali-rolling main contrib non-free
deb-src http://repo (http://<strong>repo</strong>).kali.org/kali kali-rolling main contrib non-free
darshanbhatt84
2018-03-21, 11:49
Hello,
as per your instruction i followed procedure but it shows error like this..
ading package lists... Done
E: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease 403 Forbidden [IP: 144.217.77.182 80]
E: The repository 'http://repo.kali.org/kali kali-rolling InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
so what will be the problem??
Repo doesnt seem to work after one of the latest update.
The urls 'HTTP' and 'REPO' are the original repositories and it redirects you to the nearest mirror from your geographical location and so most of the time it's busy,
You can manually override it by using on of the mirror's link directly.
https://github.com/LeN0/mirrorscript
you're welcome
ramukaka
2018-03-22, 06:36
leafpad /etc/apt/sources.list
Remove everything and past the following line
deb http://http.kali.org/kali kali-rolling main contrib non-free
Save and quit then
apt-get update
hope this will work
Add a nameserver to /etc/resolv.conf. and use https instead of http. Look over my answer at Quora.https://www.quora.com/How-do-I-fix-the-slow-update-of-Kali-2018-1-download-speed-is-in-kB-s.
Hope that helps
senthilk4
2018-12-13, 04:12
Bro I tried that but when I run apt-get upgrade after that it still seems to be pretty slow (40kb/s)...😐
UPDATE 1:
When I do this there seems to be no installation at all.
It shows that I've got 0 packages installed.
What may I do?
UPDATE 2:
If none of those tricks work like it did to me do this...
Change the http part in "http://http.kali.org/kali"
to "https://http.kali.org/kali"
Noice worked perfect for me ...
BHAGYESH
2018-12-20, 07:29
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
heisenberg98
2019-01-05, 05:38
Hey,
I changed http to repo. But after I entered sudo apt-get upgrade in terminal I got the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
So I changed it back to http and now its upgrading but its really slow.
godlydevils
2019-01-30, 04:00
Hey,
I changed http to repo. But after I entered sudo apt-get upgrade in terminal I got the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
So I changed it back to http and now its upgrading but its really slow.
So there is no problem with that, everything 0 comes when you have nothing outdated, everything you need is already there
unless if you feel like there is something wrong, missing, then I suggest manually replacing mirros instead of replacing http with repo or https
Visit this
http://http.kali.org/README.mirrorlist
it will suggest you mirrors, check with what mirror you are using from the terminal
there will be Hit:1 http and some names to website
replace that names to website to what you see in the link above other than what you are already using
You just need to replace everything before the kali-rolling including space
I replaced mine from
deb http://http.kali.org/kali kali-rolling main contrib non-free
to
deb http://mirror.neostrada.nl/kali
and left the " Kali-rolling...bla bla bla" as it is
you can also check which mirror will give you more speed, by browsing each mirror, and downloading any .gz archive with XDMAN | XDM
http://xdman.sourceforge.net/
get XDM from there
go inside dists/kali-rolling/ of any mirror, download "contents....gz" whatever file you want, just make sure it's big enough to measure your speed, and which ever mirror gives you the most speed, set it in your source.list
phoenix78862
2019-02-21, 02:51
Repo doesnt seem to work after one of the latest update.
The urls 'HTTP' and 'REPO' are the original repositories and it redirects you to the nearest mirror from your geographical location and so most of the time it's busy,
You can manually override it by using on of the mirror's link directly.
https://github.com/LeN0/mirrorscript
you're welcome
At first I was only getting 5Kb/s speed.:( Then I used this too. It was great.:D It automatically tests the connection to the servers and sorts them. We just need to type 'update'.
Now it updates <1Mb/s speed.:cool:
Try it..
Add a nameserver to /etc/resolv.conf. and use https instead of http. Look over my answer at Quora.https://www.quora.com/How-do-I-fix-the-slow-update-of-Kali-2018-1-download-speed-is-in-kB-s.
Hope that helps
Thank you so much for the post. No easy explaination on the forum but on Quora. Thanks a lot. Working perfectly fine :)
Naveen Kumar
2019-04-28, 12:16
Same problem is in my case. Usually when downloading packages or updating them the speed is very slow in bytes but when surfing or downloading from browsers the speed is usually in MB's. Just in case I tried on various fast internet networks but result was same.
When I tried your method and typed apt-get upgrade it shows -
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
QUOTE=inkbird;58493]Change HTTP to REPO in your sources list
leafpad /etc/apt/sources.list
instead of:
deb http://http (http://<strong>http</strong>).kali.org/kali kali-rolling main contrib non-free
deb-src http://http (http://<strong>http</strong>).kali.org/kali kali-rolling main contrib non-free
use:
deb http://repo (http://<strong>repo</strong>).kali.org/kali kali-rolling main contrib non-free
deb-src http://repo (http://<strong>repo</strong>).kali.org/kali kali-rolling main contrib non-free[/QUOTE]