Pages

how-to-add-official-kali-linux-repositories

How to add official Kali Linux Repositories? – Kali Linux 2.x Sana repositories

This is a small guide on how to add official Kali Linux Repositories – Kali Linux 2.x Sana repositories.
Kali Linux source.list Repositories page: Official LinkHow to add official Kali Linux Repositories
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.
Note:Any additional repositories added to the Kali sources.list file will most likely BREAK YOUR KALI LINUX INSTALL.

To Edit in the sources.list

The easiest way is to edit the /etc/apt/sources.list
root@kali:~# vi /etc/apt/sources.list
(or)
root@kali:~# leafpad /etc/apt/sources.list

Add official repo’s only:

Copy paste the following repositories (remove existing lines or you can comment them out – your take). Following repo list was taken from official Kali sources.list Repositories page:
# 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
Save and close the file and follow the below steps.

Step1

apt-get clean

Step2

apt-get update

Step3

apt-get upgrade

Step4

apt-get dist-upgrade
That’s it, you’re set.

Conclusion

A bit of caution for  Kali Linux 2.0 Kali Sana users, pointing to repo.kali.org or such will NOT work and might cause issues.
Don’t add extra repositories to your Kali 2.0 install
Despite what many unofficial guides instruct you to do, avoid adding extra repositories to your sources.list files. 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. [Source: Offensive Security Blog]

No comments:

Post a Comment