Home TutorialsHow toHow to add official Kali Linux Repositories? – Kali Linux 1.x repositories

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

by blackMOREOps
How to add official Kali Linux Repositories - blackMORE Ops

This is a small guide on How to add official Kali Linux Repositories. How to add official Kali Linux Repositories - blackMORE Ops

Kali Linux source.list Repositories page: Official Link

We’ve seen many people break their Kali Linux installations by following unofficial advice, or arbitrarily populating their sources.list file with unneeded 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.

Kali Linux 2.0 – Kali Sana users, use this guide instead. How to add official Kali Linux Repositories? – Kali Linux 2.x Sana repositories

Open sources.list and comment all lines with # in front

The simplest way is to edit the /etc/apt/sources.list

 leafpad /etc/apt/sources.list

If you’re serious about keeping Kali Linux stable, then remove or comment every-line with # at the front and add the following lines..

Add Official Repo’s only:

If you’ve added Bleeding edge repo, 3rd party repo etc. you should have the technical skills to fix your Kali installation at a later stage. As far I’ve seen, Kali dev team doesn’t really care or support 3rd party repo and when you break stuffs, you will possibly met with a silence or a flat “reinstall” answer. Choice is yours.

WARNING: Following guide is for Kali Linux 1.x.

Kali Linux 2.0 – Kali Sana users, use this guide instead. How to add official Kali Linux Repositories? – Kali Linux 2.x Sana repositories

Following is the official repository for Kali Linux.

## Regular repositories
deb https://http.kali.org/kali kali main non-free contrib
deb https://security.kali.org/kali-security kali/updates main contrib non-free
## Source repositories
deb-src https://http.kali.org/kali kali main non-free contrib
deb-src https://security.kali.org/kali-security kali/updates main contrib non-free

Save and close the file.

Clean your apt-get

apt-get clean

STOP:  To fix Kali apt-get slow update follow the guide on fixing Kali apt-get slow update.

To switch repositories to a different mirror of your choice, follow the guide on changing repositories to a different mirror.

Do an apt-get update

apt-get update

Do and upgrade

apt-get upgrade

Finally do a distribution upgrade

apt-get dist-upgrade

That’s it, you’re set.

Conclusion

I have seen users go on and add Bleeding Edge repo or narrow it down to amd64, i386 repo etc. I just don’t see the point of doing that like some are used to doing in Debian or other distributions. Kali repo is quite smart and as long your architecture was not fiddled with, you can always use the repo I’ve listed above to pull updates.

One more thing, unless you know what you are doing, just don’t add Bleeding Edge repo. It’s repo under development and you will end up having more issues for little benefit. But if you are a developer yourself, go ahead.

It is very important to keep Kali updated as Kali dev team will remove old version quite often. If you have a very old Kali ISO, perhaps just download a new ISO and start from there. Either way, thanks for reading. Do share RT.


Discover more from blackMORE Ops

Subscribe to get the latest posts sent to your email.

You may also like

58 comments

loki July 22, 2018 - 5:15 pm

I hav the official repositories from kali site and i m getting these problems. Plz help

apt-get update
Ign:1 https://http.kali.org/kali kali InRelease
Ign:2 https://security.kali.org/kali-security kali/updates InRelease
Err:3 https://http.kali.org/kali kali Release
404 Not Found [IP: 192.99.200.113 80]
Err:4 https://security.kali.org/kali-security kali/updates Release
404 Not Found [IP: 192.99.200.113 80]
Reading package lists… Done
E: The repository ‘https://http.kali.org/kali kali Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘https://security.kali.org/kali-security kali/updates Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Reply
1 2 3

Leave your solution or comment to help others. Comment don't need registration or real email, so feel free.

This site uses Akismet to reduce spam. Learn how your comment data is processed.