The common reasons for the broken Kali Linux installation are informal and arbitrarily supplement the sources.list directory of the application with non-official repositories. The following post aims to explain, and when to use, the repositories in sources.list.
We have to edit the sources.list file in /etc / apt / sources.list.
root@kali:~# vi /etc/apt/sources.list (OR)
root@kali:~# leafpad /etc/apt/sources.list (OR)
root@kali:~# cat /etc/apt/sources.list
First add official Repo to Kali:
After launch of Kali 2016.1, kali-rolling is our current active repository. The following entries in their sources are expected for Kali Rolling users:
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
Now we have to clear our apt-get and patch, uninstall and restore delivery.