After installing Kali Linux from an ISO file, you may need to manually update the kali linux repository sources.list file with the official list of repositories.
This guide will show you how to add Kali Linux repositories to sources.list.
Apt requires software repositories to download packages and install them on your computer.
So, let's begin.

Kali Linux official repository
First after installing a clean Kali Linux the sources.list contains 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 may update a few apps and if you try to install a new app 90% it won't and it will give you a message like this one E:Unable to locate package

The simplest way is to edit the
/etc/apt/sources.list
Clear your Sources.list file by removing everything inside to do so please follow those steps:
Terminal command:
sudo mousepad /etc/apt/sources.list
after this commend, you will get something like this

now remove every line of them and add this new lines
kali linux repository
kali linux 2020
deb http://http.kali.org/kali kali-rolling main non-free contrib deb-src http://http.kali.org/kali kali-rolling main non-free contrib
Kali Linux 2017.1
Kali Linux 2017.1 sources.list use the repo below:
deb http://repo.kali.org/kali kali-rolling main non-free contrib
For Kali Linux 2016 – Kali Rolling use the repo below:
# For source package access, uncomment the following line deb http://http.kali.org/kali kali-rolling main contrib non-free
Kali Linux 2.0
For Kali Linux 2.0 – Kali Sana uses the repo below:
No more 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 <h1>Source repositories</h1> 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
Kali Linux 1.x
For Kali Linux 1.x users use the repo below:
No more update for Kali 1.0 please 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 <h2>Source repositories</h2> 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
Save and close the file. Details and explanations can be found in adding official Kali Linux Repositories page.
Now after we are done adding Kali Linux Repositories it's time to do Clean, update, upgrade and dist-upgrade for Kali installation, to do so follow those commands
apt-get clean & apt-get update & apt-get upgrade -y & apt-get dist-upgrade -y
How to update Kali Linux repository
To update Kali Linux repository first log in as root or user and start the terminal.
In the terminal, check the current list of apt repositories present on the system.
cat /etc/apt/sources.list

If there are no APT repositories, paste the code below to add them.
sudo tee -a /etc/apt/sources.list&lt;&lt;EOF deb http://http.kali.org/kali kali-rolling main non-free contrib deb-src http://http.kali.org/kali kali-rolling main non-free contrib EOF
The command shown above will add standard and source repositories to /etc/apt/sources.list .
Confirm that they are added and Update the list of your packages:
sudo apt update
- 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 the 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.
if you still have any update error please check this post
how to update Kali Linux and Fix update error
You may also check this youtbe Video
how to update Kali Linux and fix kali sources.list Repositories
Have a great day hope I did help
No comments:
Post a Comment