Results 1 to 25 of 25

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
    928
    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
    928
    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
    928
    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
    928
    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
    192
    I'd work my way down this list:

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

    and go with the fastest.
    ----------------------------------------
    https://re4son-kernel.com
    - - - - - - - - - - - - - - - - - - - - - -
    Check out "Sticky Fingers Kali-Pi":
    https://re4son.com/kali-pi

    Now with mana-toolkit and more goodies!

  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
    928
    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
    2
    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

Similar Threads

  1. Kali linux running slow
    By spencermat in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2017-05-02, 18:39
  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
  4. Kali 2.0 Running Very Slow graphically
    By lokeshh in forum General Archive
    Replies: 4
    Last Post: 2015-09-20, 06:09

Posting Permissions

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