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 kali main non-free contrib
deb 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

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 kali main non-free contrib
deb kali/updates main contrib non-free
## Source repositories
deb-src kali main non-free contrib
deb-src 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 sana main non-free contrib
deb sana/updates main contrib non-free
# Source repositories
deb-src sana main non-free contrib
deb-src sana/updates main contrib non-free
For Kali Linux 2016 – Kali Rolling  use the repo below:
deb kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src 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