The single most common causes of a broken Kali Linux installation are following unofficial advice, and particularly arbitrarily populating the system’s sources.list file with unofficial repositories. The following post aims to clarify what repositories should exist in sources.list, and when they should be used.

We need to edit your sources.list file found in /etc/apt/sources.list

[email protected]:~# vi /etc/apt/sources.list     (OR)

[email protected]:~# leafpad /etc/apt/sources.list     (OR)

[email protected]:~# cat /etc/apt/sources.list

Now add official Repo’s to kali:

kali-rolling is our current active repository since the release of Kali 2016.1. Kali Rolling users are expected to have the following entries in their sources.list:

deb kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src kali-rolling main contrib non-free

Save and close the file.
Now we need to clean our apt-get and then update, upgrade and Distribution upgrade.

apt-get clean
apt-get update
apt-get upgrade
apt-get dist-upgrade

The kali-rolling Repository

In contrast to kali-dev, kali-rolling is expected to be of better quality because it’s managed by a tool that ensures installability of all the packages it contains. The tool picks updated packages from kali-dev and copies them to kali-rolling only when they have been verified to be installable. The repository is also fed by a stream of tool updates, of which we get notified via our upstream git tagging watch list.

For more reference please refer kali official page

Gurubaran is a PKI Security Engineer. Certified Ethical Hacker, Penetration Tester, Security blogger, Co-Founder & Author of GBHackers On Security.

Leave a Reply