This is a small-scale guide on how to add together official Kali Linux Repositories – I’ve updated it to include all versions of Kali Linux till engagement i.e. Kali 1.x, Kali 2.0/Kali Sana together with Kali Rolling.
The unmarried nearly mutual causes of a broken Kali Linux installation are next unofficial advice, together with peculiarly arbitrarily populating the system’s sources.list file amongst unofficial repositories. The next postal service aims to clarify what repositories should be inward sources.list, together with when they should endure used.
Any additional repositories added to the Kali sources.list file volition nearly probable BREAK YOUR KALI LINUX INSTALL.
Edit your sources.list
The easiest agency 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 glue the next repositories (remove existing lines or you lot tin plough over notice comment them out – your take). Following repo listing was taken from official Kali sources.list Repositories page:
The Kali Rolling Repository
Kali-Rolling is the electrical current active repository since the disclose of Kali 2016.1 together with 2016.2. Kali Rolling users are expected to receive got the next entries inward their sources.list
:
deb http://http.kali.org/kali kali-rolling master copy contrib non-free
deb-src http://http.kali.org/kali kali-rolling master copy contrib non-free
Save together with closed the file.
Retired Kali Sana (Kali 2.0) Repositories
For access to the retired Kali Sana or Kali 2.0 repositories, receive got the next entries inward your sources.list
:
deb http://old.kali.org/kali sana master copy non-free contrib
deb-src http://old.kali.org/kali sana master copy non-free contrib
Save together with closed the file.
Retired Kali moto (1.0) Repositories
For access to the retired moto repositories, receive got the next entries inward your sources.list
:
deb http://old.kali.org/kali moto master copy non-free contrib
deb-src http://old.kali.org/kali moto master copy non-free contrib
Save together with closed the file.
OLD Instructions (Kali 1.0 – does non operate anymore)
I’ve kept these for historical role only, these repo’s worked on Kali 1.x (2013 – 2015). Do no follow these anymore.
# Regular repositories
deb http://http.kali.org/kali sana master copy non-free contrib
deb http://security.kali.org/kali-security sana/updates master copy contrib non-free
# Source repositories
deb-src http://http.kali.org/kali sana master copy non-free contrib
deb-src http://security.kali.org/kali-security sana/updates master copy contrib non-free
Clean your apt-get
apt-get clean
Do an apt-get update
apt-get update
Do an upgrade
apt-get upgrade
Finally create a distribution upgrade
apt-get dist-upgrade
That’s it, you’re set.
Conclusion
Despite what many unofficial guides learn you lot to do, avoid adding extra repositories to your sources.list files. Don’t add together kali-dev, kali-rolling or whatever other Kali repositories unless you lot receive got a specific argue to – which usually, you lot won’t. If you lot must add together additional repositories, driblet a novel sources file inward /etc/apt/sources.list.d/
instead. [Source: Offensive Security Blog]
If you lot must, (despite alert many users volition endure tempted), create essay it inward a VirtualBox/VMWare outset together with receive got snapshots together with hence that you lot tin plough over notice whorl back. Kali updates are quite big together with takes a lot of fourth dimension to download together with their DVD ISO’s are non real upwards to date. You tin plough over notice build your ain custom updated ISO yesteryear next these instructions together with driblet dead on using that offline.
Thanks for reading. If I receive got made a mistake, delight right me.