You are on page 1of 14

Learn one trick a day ....

Home How to How to fix Kali Linux apt-get slow update?

How to fix KaliLinux aptget slow update?

20

Google Site
Search

This entry was posted in How to Kali Linux Linux and tagged How to Kali Linux on Octob er 30, 2013
b y b lackMORE Ops (updated on March 31, 2014)

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Enterprise Web Hardware


Create Loyalty By Beating Customer Web Performance Demands. See How!

Enterprise Web
Hardware
solutions.radware.com

Create Loyalty By Beating Customer Web


Performance Demands. See How!

Network Security
Scanner
Official TurboTax
2015
Recent

Posts

Introducing Kali
Linux NetHunter
and NetHunter
supported devices

How to fix Kali Linux apt-get slow


update?
This is a small guide on How to fix Kali Linux apt-get slow update.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

Denial of Service
Attack Proof of
Concept PHP
Exploit for <=4.0
WordPress DoS
Attack CVE-2014-

pdfcrowd.com

9034

Determine if a
disk is SSD or HDD

[Updated]
darodar.com
referrer spam and
should you be
worried?

Kali is relatively new and got fewer Mirrors than some other distros. That means less
servers to download from and less servers means more people trying to download
from them and using all bandwidth. So when you type in apt-get update, you see a
slow download speed for packages. This just means youre connected to a server
thats really busy. Some users complains that nothing happens or they are not getting
any updates at all. Some got different issues like update stuck is header and doesnt
move any further.
To fix this, you need to check a few things:
1.
2.
3.
4.

Check if you have the right repositories is your /etc/apt/sources.list


Remove unwanted or unsupported repositories.
Clean apt-get cache.
Choose a fast DNS server.

To fix sources.list, follow this guide: How to add official Kali Linux Repositories?
To switch repositories to a different mirror of your choice, follow this guide: How to
change repositories to a different mirror?

Clean apt-get cache:


open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

apt-get clean

Choose a proper DNS server:


Edit resolv.conf file:
leafpad /etc/resolv.conf

Enter Google DNS nameservers


Following two are Google DNS, lets face it, if Google is broken, we all think Internet is
broken. Hence the reason of using Google DNS. You can choose other DNS Server if
you want that are fast and reliable.

Software Development Tools


Free Anti Virus Downloads
Best Video Editors
MP3 Players Software
Free Audio Mixing Software
Audio Recording Software
Download Music Players

Recent

Comments
blackMORE Ops
on Denial of
Service Attack
Proof of Concept
PHP Exploit for
<=4.0 WordPress
DoS Attack CVE2014-9034
Brian Fyffe on
Introducing Kali
Linux NetHunter
and NetHunter
supported devices
jay on Random
quotes and
creatures using

nameserver 8.8.8.8
nameserver 8.8.4.4

Now save and close the file.

Test your changes


open in browser PRO version

Are you a developer? Try out the HTML to PDF API

fortune and cowsay


in Linux terminal
Dylan on
Introducing Kali
Linux NetHunter

pdfcrowd.com

Linux NetHunter
Let put our changes to the test..

Do an apt-get update

and NetHunter
supported devices

apt-get update

Do and upgrade
apt-get upgrade

Finally do a distribution upgrade


apt-get dist-upgrade

Your download speed should be a lot better than you were getting previously.

Another solution, changing from HTTP to


REPO in sources.list file (14/02/2014)
One of the readers advised that by changing the repositories from HTTP to REPO,
he gained significant speed up. See Sameer Barhas comment below.
Use the following repositories (update your sources.list file)
## Kali Regular repositories
deb http://repo.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main con
trib non-free
## Kali Source repositories
deb-src http://repo.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main
contrib non-free

Instead of
## Kali Regular repositories

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

deb http://http.kali.org/kali kali main non-free contrib


deb http://security.kali.org/kali-security kali/updates main con
trib non-free
## Kali Source repositories
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main
contrib non-free

This change seems to boost speed as it uses slightly different repo than the usual
HTTP servers which are overloaded. Let us know how this worked for you.
In case your sources.list file is messed up or youre just not sure, what to put on
there, follow these instructions to add official Kali Linux Repositories.
(Note: The above mentioned repositories are a slightly variant of the official one, you
can choose either as they are both from Kali.org)
In case your DNS server is picking up (even Googles DNS server) a repository from
a different country(or avoid a specific country) and you would like to manually switch
repositories to a different mirror of your choice(say in same country or just something
you know working faster, follow these instruction to change repositories to a different
mirror.
Thanks for reading. Please comment your experience to make this guide better. If
youve found this useful, share and follow us on Facebook/Twitter.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Related

Adding Kali Linux mirrors


after offline installation
In "How to"

How to change
repositories to a different
mirror?
In "How to"

How to add official Kali


Linux Repositories?
In "How to"

About blackMORE Ops


b lackMORE Ops is dedicated to How to, Guides, Security features and Tips
and Tricks for Linux OS. Thank you for visiting us and follow us here
www.b lackmoreops.com.
View all posts b y b lackMORE Ops

Leave a Reply
Enter your comment here...

20 thoughts on How to fix Kali


open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

20 thoughts on How to fix Kali


Linux apt-get slow update?
Telson Alva

Reply

March 4, 2014 at 12:32 am

Changing from http to repo made a huge difference !!

blackMORE Ops

Post author

Reply

March 4, 2014 at 12:37 am

For me it's is different every time. Sometime http works better


sometime repo. Either way, it's good to try when download is
too slow for comfort.

meet

Reply

March 14, 2014 at 12:17 pm

Dud you are awsm ?

neo1981

Reply

March 30, 2014 at 3:19 am

Thanks for the repo instead of http it works like charm to me

Abhimanyu

Reply

April 15, 2014 at 1:31 pm

Thanxx Man The Second Method Is worked For mee thanks alot

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Anonymous

Reply

April 15, 2014 at 6:30 pm

Thanks! Changing http to repo sources really helped!

dtouch

Reply

May 1, 2014 at 9:25 am

Repo rocks.. changed apt-get speed from sluggish b/s to 1mb/s

chris kaprys

Reply

May 1, 2014 at 4:52 pm

thanks for the info. still hovering between 3 KB/s and 4KB/s, with
estimates between 11 hours and 1+ days for 25MB (on a 8Mb
connection in Bangkok). i let it run all night last night, but the net
(which is always spotty) got disconnected at some point. oh
well.

imtheblacklight

Reply

May 12, 2014 at 4:58 am

holy s*** it worked gr8 updating the sources.list was awesum


trick

blackMORE Ops

Post author

Reply

May 13, 2014 at 10:23 am

imtheblacklight :) Its awesome isnt it! I was just as surprised


when I first tried it!!!

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Rico Arman

Reply

May 13, 2014 at 5:32 pm

Changing http to repo was awesome for me :) thanks for this nice
shares :)
Here I am looking forward for another guidance such as:
1. Is it possible to auto update the content of /etc/resolv.conf?
2. What should I do to always obtain the fastest and reliable DNS
Server and how to auto write them to /etc/resolv.conf frequently?
Thanks

Bajpan Gosh

Reply

July 11, 2014 at 8:40 pm

sudo apt-get install resolvconf


Once you have made sure that the resolvconf is installed,
edit the configuration file using the following command:
sudo leafpad /etc/resolvconf/resolv.conf.d/base
and write
domain-name-servers 8.8.8.8
domain-name-servers 8.8.4.4
Save it. Now the settings in resolv.conf will be permanent.

Mr Lee

Reply

May 17, 2014 at 6:35 am

THANKX MATE speed shot up from a measely 10 kb/s to 290


kb/s I used the REPO trick .. awesome

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

chris

Reply

May 17, 2014 at 6:58 am

hi,
I have 2 graphic cards a built in INTEL and AMD athlon 8000
series,can i follow this method of installation of drivers without
causing ambiguity for the OS as to which card to boot from ??

asdasdffasdl

Reply

May 20, 2014 at 3:09 am

Well changing to repo just works, was wasting my time before!


Thanks a bunch!

dext0p

Reply

May 29, 2014 at 7:30 pm

Thanks a lot!! Changing HTTP to repo worked for me yet again


http://security.kali.org/kali-security/ kali/updates/main was slow

Ghost

Reply

July 2, 2014 at 10:24 pm

Awesome Man!! Picked Up Speed combining Google DNS Servers


nd repo made my day :) :D
Thank U blackMORE Ops nd also Sameer

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Bader

Reply

August 26, 2014 at 10:50 pm

Changing http to repo sources really helped me , thanks a lot man


:D

0niturk

Reply

Septemb er 19, 2014 at 3:03 pm

The DNS change worked for me. Thanks ! : )

Shubham Kumar

Reply

Novemb er 18, 2014 at 12:47 am

It was good. and very much thanks to you to help me starting to


use kali linux.
Please add more posts for beginners. Thanks in advance.

Post navigation
How to add official Kali Linux Repositories?
How to fix broken Menu in Kali Linux

Archives

January 2015

December 2014

open in browser PRO version

(2)
(7)

Categories

BIOS

(1)

Brow ser

RSS Feed
RSS - Posts

(5)

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

December 2014

(7)

Brow ser

(5)

November 2014

(3)

Cracking

(3)

October 2014

Data Recovery

September 2014

DDOS

August 2014

Denial-of-service

July 2014

(2)

Driver

June 2014

(10)

Hacking

(4)

April 2014

(2)

Hashcat

(1)

March 2014

How to

February 2014

Linux

January 2014

December 2013

(10)

November 2013

(12)

October 2013

(4)
(5)

(9)

(8)

open in browser PRO version

(6)

(12)

(29)

RSS - Comments

(1)

(1)
(2)

(2)

(88)

(118)

Administration

AMD (9)

BIND (1)

CentOS

cli

Desktop Managers

Kali Linux

(62)

Metasploit

(2)

Monitoring

(3)

NetHunter

(1)

Netw orking

NVIDIA

ProxyChains

Pyrit

Reaver

Security

Sound

VPN (1)

WPSCAN (2)

New s

Others

(17)

(1)

(12)
(12)

(4)

(7)
(1)

(8)
(1)
(10)

(2)

(1)
(13)

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Recover root passw ord

Spam (1)

Usability

USB

VirtualBox

Wifi

Wireless

Wordpress

(1)

(2)

(1)
(2)

(10)
(3)
(3)

2015 blackMORE Ops Designed by

Back to top

Themes & Co

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

You might also like