If 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:
- How to fix Kali Linux apt-get slow update?
- How to change repositories to a different mirror?
- Fix “WARNING: The following packages cannot be authenticated!” in Kali Linux
sources.list Repositories page: Official Link
Open sources.list and comment all lines with # in front
Add Official Repo’s only:
## Regular repositories deb http://http.kali.org/kali kali main non-free contrib deb http://security.kali.org/kali-security kali/updates main contrib non-free ## 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
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
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
Do and upgrade
Finally do a distribution upgrade
That’s it, you’re set.Thanks for reading. Please share.