Kali linux is a debian base linux distribution designed for penetration
testing. Here, I will give a tutorial on how to add a repository on Kali Linux 1.0.3 with ease. Repository is a archival software, where software in this archive can be retrieved by the user to use. Please shown below to check for the new blog post on repository.
1. Open root terminal and type this code.
root@kali:~# leafpad /etc/apt/sources.list
2. Add all repositories, i.e. :
deb http://http.kali.org/ /kali main contrib non-free
deb http://http.kali.org/ /wheezy main contrib non-free
deb http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali-dev main/debian-installer
deb http://http.kali.org/kali kali main contrib non-free
deb http://http.kali.org/kali kali main/debian-installer
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb-src http://http.kali.org/kali kali main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
Save the file and exit.
Save the file and exit.
3. root@kali:~# apt-get update
4. root@kali:~# apt-get upgrade
----------------------------------------------------------------------------------
Kali Linux Repositories
Hi Everyone! this is an updated post on Kali Linux repositories. Well, a
repository is an archival source from where Kali Linux software are
updated and upgraded online. sources.list is the file where all the links for necessary update are saved. When we execute a command apt-get update,
it searches for the updated package online. Un-wanted or un-necessary
links can cause failure of Kali Linux package installation, so make
sure what link/s should be added to the repository so that Kali Linux
should get proper update.
Kali Linux distribution has three repositories, which are mirrored world-wide:
http.kali.org (mirrorlist): the main package repository;
security.kali.org (mirrorlist): the security package repository;
cdimage.kali.org (mirrorlist): the repository with ISO images.
On a clean installation, Kali Linux, have the following two entries present in /etc/apt/sources.list:
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
These are called Regular repositories from where Kali Linux get its update. In case, you require additional package, then your can add valid package source. You might also want to add the following repositories as well. These are Sources repositories:
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
Finally, do not forget to do an update Kali Linux on terminal by typing apt-get update && apt-get upgrade && apt-get dist-upgrade.
Suggestion from Mr. Phong Do.
Mr. Phong Do, made a change by just replacing "http:" with "deb" and
found update is much faster. Hi all, please check and update me in
comments so that I can update the post accordingly. THANKS.
just change http to repo like this:
deb http://repo.kali.org/kali kali main non-free contrib
------------------------------------------------------------------------------------------------------------
if you have and package source errors then follow these repositaries.edit entire sources list(delete previous add -->empty all repositaries-->then add below repositaries)
As you may know, Kali is a penetration Linux System based on Debian. It is developed by the Backtrack team.
To add repositories, open the /etc/apt/sources.list file in your favourite text editor as root, and paste the following lines:
Paste this:
Save and update the system:
Now, you are ready to go.
just change http to repo like this:
deb http://repo.kali.org/kali kali main non-free contrib
------------------------------------------------------------------------------------------------------------
if you have and package source errors then follow these repositaries.edit entire sources list(delete previous add -->empty all repositaries-->then add below repositaries)
As you may know, Kali is a penetration Linux System based on Debian. It is developed by the Backtrack team.
To add repositories, open the /etc/apt/sources.list file in your favourite text editor as root, and paste the following lines:
$ gksudo /etc/apt/sources.list
Paste this:
deb http://http.kali.org/ /kali main contrib non-free
deb http://http.kali.org/ /wheezy main contrib non-free
deb http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali-dev main/debian-installer
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
deb http://http.kali.org/kali kali main/debian-installer
deb-src http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://repo.kali.org/kali kali-bleeding-edge main
Save and update the system:
$ sudo apt-get update
Now, you are ready to go.