Last Updated on January 30, 2021 by admin
Checking / restoring / cleaning Kali Linux repositories
Original sources of applications (repositories) are the main key to the health of your Kali Linux.
The warning that changing/adding new repositories, as a rule, kills the system is on the official website.
Numerous experiences indicate that a huge number of problems are caused by errors in the sources of applications. If the standard Kali Linux instructions that work for most other users do not work for you, then 99% are due to modified kali repositories.
The most important thing in kali linux sources list is this line:
deb https://http.kali.org/kali kali-rolling main non-free contrib
and there were no third-party application sources.
In Kali Linux, application sources are listed in the /etc/apt/sources.list file . The normal, default content for kali sources list is as follows:
root@Kalitut:~# cat /etc/apt/sources.list
deb https://http.kali.org/kali kali-rolling main non-free contrib
# deb-src https://http.kali.org/kali kali-rolling main non-free contrib
if your file doesn’t look like this then type this command in your terminal:
echo -e "deb https://http.kali.org/kali kali-rolling main non-free contrib" > /etc/apt/sources.list
This command will completely wipe the /etc/apt/sources.list file and add one line to it (you can do it manually following those commands :
leafpad /etc/apt/sources.list
Delete all the lines in your Repository file and add just add this one:
deb https://http.kali.org/kali kali-rolling main non-free contrib
Now you can update and upgrade to do so follow those commands:
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
and you can follow this video showing the same steps:
Leave a Reply