Thursday, 13 August 2015

Adding Official Repositories in Kali Linux 2.0 - Kali Sana

This post will guide you in adding repositories in Kali Linux 2.0 Kali Sana. 

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.

Any additional repositories added to the Kali sources.list file will most likely BREAK YOUR KALI LINUX INSTALL.

Please follow the commands below to add the repositories

Open source.list by entering the following command in terminal

root@kali:~# vi /etc/apt/sources.list


root@kali:~# gedit /etc/apt/sources.list

Copy and paste the following repositories(make sure you delete everything from the opened source.list file first)

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

Once you finish adding it please save and close the file

Now enter the following commands one by one in your terminal

apt-get clean

apt-get update

apt-get upgrade

apt-get dist-upgrade

That's it. Congratulation you have added the repositories

Don’t add kali-dev, kali-rolling or any other Kali repositories unless you have a specific reason to – which usually, you won’t. If you *must* add additional repositories, drop a new sources file in /etc/apt/sources.list.d/ instead.

No comments:

Post a comment