Adding Kali Linux mirrors after offline installation

How to fix Kali apt-get slow update - blackMORE OpsIf you installed Kali offline from a CD/DVD or USB (or have chosen not to connect to internet during installation), you probably have an empty sources.list file with just 2 lines on it (CDROM’s). Also if your internet connection is not reliable or too slow to do an update during install, you might’ve chosen a similar installation option. Either way, you won’t get the mirrors or repositories during a hard disk install added to your sources.list file. This will cause issues in the future when seeking new or updated software packages from the Kali repos.This guide shows how to add official Kali Linux mirrors or repositories.

Similar posts exists in this website to troubleshoot other problems which might be worth looking into:

  1. How to fix Kali Linux apt-get slow update?
  2. How to change repositories to a different mirror?
  3. Fix “WARNING: The following packages cannot be authenticated!” in Kali Linux

Kali Linux sources.list Repositories page: Official Link

Open sources.list and comment all lines with # in front

leafpad /etc/apt/sources.list

Add Official Repo’s only:

## Regular repositories
deb kali main non-free contrib
deb kali/updates main contrib non-free
## Source repositories
deb-src kali main non-free contrib
deb-src kali/updates main contrib non-free

Save and close the file.

You can check that the sources have been added and are being used by loading Add/Remove Software from the Sys Tools menu and selecting System -> Software Sources.

Clean your apt-get

apt-get clean

STOP: If your Kali Linux apt-get update is slow follow this guide to sort out other issues: How to fix Kali apt-get slow update?

To switch repositories to a different mirror of your choice, follow this guide: How to change repositories to a different mirror?

Do an apt-get update

apt-get update

Do and upgrade

apt-get upgrade

Finally do a distribution upgrade

apt-get dist-upgrade

That’s it, you’re set.Thanks for reading. Please share.

Check Also

Install, setup, configure and run OpenVAS on Kali Linux - blackMORE Ops - 13

Install, setup, configure and run OpenVAS on Kali Linux

Vulnerability scanning is a crucial phase of a penetration test and having an updated vulnerability …

Correct way of installing VirtualBox Guest Additions in Kali Linux 2016.2/2017 (Kali Rolling)

How to install VirtualBox Guest Additions in Kali Linux (Kali Rolling / Kali Linux 2016.2 / Kali 2017)

Since Kali Linux 2016 came out (also known as Kali Rolling), it seems that Official …


  1. thanks …. that was very helpful…

  2. I’m not a big fan of being dependent on the Internet for installations… How would you get all updates, and dependencies without installing them and keep them for a later off-line installation?

  3. I keep getting an error whenever I do this. Can’t even update…


    :~# apt-get update
    Err kali Release.gpg
    Unable to connect to [IP: 80]
    Err kali/updates Release.gpg
    Unable to connect to [IP: 80]
    Reading package lists… Done
    W: Failed to fetch Unable to connect to [IP: 80]

    W: Failed to fetch Unable to connect to [IP: 80]

    W: Some index files failed to download. They have been ignored, or old ones used instead.


    What am i doing wrong???

  4. thank u so much…….it’s work

  5. Everything works, but for some reason kali breaks the wireless connection after a while and then just reconnects .This has nothing to do with the wireless network.

  6. It shows leafpad command not found. Plz help. I need to get the GUI and also the important mirrors and all as i installed without an internet connection.

Use, Twitter, Facebook, or Google+ accounts to comment (anonymous comments allowed). Leave your solution to help others.

This site uses Akismet to reduce spam. Learn how your comment data is processed.