Results 1 to 32 of 32

Thread: apt-get update running very slow

  1. #1
    Join Date
    2014-Nov
    Posts
    8

    Question 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!

  2. #2
    Join Date
    2016-Feb
    Posts
    6
    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

  3. #3
    Join Date
    2013-Mar
    Location
    Indonesia
    Posts
    19
    make sure you have fast internet connection

    mine is working well with the default sources.list
    OSCP | OSWP | Offsec is the best

  4. #4
    Join Date
    2016-Sep
    Posts
    1
    I have the same problem and I have a great internet connection that gives 1-2 mbps download speed

  5. #5
    Join Date
    2016-Dec
    Posts
    1
    The solution that inkbird posted solved my problem. Im now getting 7mb/s. I was getting just kb/s. Thanks!!

  6. #6
    Join Date
    2017-Oct
    Posts
    1
    Thanks men it is working perfectly. I got nice speed as previously i'm getting.

  7. #7
    Join Date
    2017-Nov
    Posts
    1
    inkbird's fix worked for me. Getting 10 mbps now

  8. #8
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    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.

  9. #9
    Join Date
    2016-Nov
    Location
    Kali World
    Posts
    1
    you can test with: apt-fast

  10. #10
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by ghost-287 View Post
    you can test with: apt-fast
    Is it working for you?

  11. #11
    Join Date
    2017-Nov
    Posts
    1
    cool! it worked for me.I have a connection of 4Mbps but I was getting only 25Kbps...It sucks

  12. #12
    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?

  13. #13
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by mehrajwani712 View Post
    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.

  14. #14
    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 ?

  15. #15
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by Anonymous4Ever View Post
    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.

  16. #16

    Unhappy

    Quote Originally Posted by _defalt View Post
    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.

  17. #17
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    I'd work my way down this list:

    http://http.kali.org/README.mirrorlist

    and go with the fastest.

  18. #18
    Join Date
    2018-Feb
    Posts
    1
    Quote Originally Posted by inkbird View Post
    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"
    Last edited by maiki; 2018-02-16 at 08:38. Reason: Merge Posts

  19. #19
    Join Date
    2018-Feb
    Posts
    1

    Not working

    earlier it was working fine, but now it is showing
    error 403 Forbidden

  20. #20
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    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.

  21. #21
    Join Date
    2018-Mar
    Posts
    1

    Exclamation after changing in repo iam getting this error

    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.



    Quote Originally Posted by inkbird View Post
    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

  22. #22
    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??

  23. #23
    Join Date
    2018-Mar
    Posts
    1
    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

  24. #24
    Join Date
    2018-Mar
    Posts
    5
    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

  25. #25
    Join Date
    2018-Apr
    Posts
    1
    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-t...eed-is-in-kB-s.
    Hope that helps

  26. #26
    Join Date
    2018-Dec
    Posts
    1

    Quote Originally Posted by Cybo_Freak View Post
    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 ...

  27. #27
    Join Date
    2018-Dec
    Posts
    1
    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

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

  29. #29
    Join Date
    2019-Jan
    Posts
    1
    Quote Originally Posted by heisenberg98 View Post
    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

  30. #30

    I recommend this to everyone..

    Quote Originally Posted by Jayanta View Post
    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. It automatically tests the connection to the servers and sorts them. We just need to type 'update'.
    Now it updates <1Mb/s speed.
    Try it..

  31. #31
    Join Date
    2019-Apr
    Posts
    1
    Quote Originally Posted by lostkid View Post
    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-t...eed-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

  32. #32

    Hey it's not working..!!!

    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.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
    [/QUOTE]

Similar Threads

  1. Kali 2019.3 Running Very Slow
    By zsnell in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2019-11-21, 00:02
  2. New install running slow
    By smorris in forum General Archive
    Replies: 0
    Last Post: 2017-03-07, 06:13
  3. Kali running slow (lag)
    By MonkeyD in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2016-09-02, 17:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •