Monday, 21 March 2016

Fix 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.
Any additional repositories added to the Kali sources.list file will most likely break your kali linux install.
Fix default repository

First after installing a clean Kali Linux the sources.list counte only tow repository and they are:

## Regular repositories
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
if you try to do update it maybe update a few apps and if you try to install a new app 90% it wont and it will give you a massage like this one


The simplest way is to edit the

 /etc/apt/sources.list
Terminal Command:- leafpad /etc/apt/sources.list 

remove or comment every-line with # at the front and add the following lines..

After this comment you will get something like this 


now remove every line of them and add this new lines

For Kali Linux 1.x users  use the repo below:
No more update for Kali 1.0 pleas upgrade to new Kali 2016

## Regular repositories
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Source 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
For Kali Linux 2.0 – Kali Sana  use the repo below:
you Still can receive update for Kali Sana but not for long so please upgrade to Kali 2016.1

# 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
For Kali Linux 2016 – Kali Rolling  use the repo below:
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
Save and close the file.   Details and explanations can be found in adding official Kali Linux Repositories page.

Clean, update, upgrade and dist-upgrade your Kali installation.


The command

apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

The Kali Rolling Repository
Kali sana (2.0) Repositories
Kali moto (1.0) Repositories
Kali Linux Repositories

The kali-rolling Repository
In contrast to kali-dev, kali-rolling is expected to be of better quality because it’s managed by a tool that ensures installability of all the packages it contains. The tool picks updated packages from kali-dev and copies them to kali-rolling only when they have been verified to be installable.

No comments:

Post a Comment