Add Kali Linux git source repository
After installing Kali Linux the next step how to update and upgrade it. Repository plays an important role to update and upgrade Kali Linux. Git Source Repository is a Server store all updated verified tools for Kali Linux. We need to add these server addresses in the source.list file, locate /etc/apt/. As we know Kali Linux is a Debian-based Operating System, so all the Debian packages can be installed on it. but some packages may because of a crash the Kali Linux due to incompatibility. So it is important to add only the official source list in file.
Step 1: Go to the official website HERE
Step 2: Copy the source lists ( Regular Repositories and Source repositories) and add it into /etc/apt/source.list file
On a standard, a clean install of Kali Linux, you should have the following two entries present in/etc/apt/sources.list:
deb http://security.kali.org/kali-security sana/updates main contrib non-free
You can find a list of official Kali Linux mirrors here.
In case you require source packages, you might also want to add the following repositories as well:
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free