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

or

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 http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
# Source repositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security 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