Friday, July 5, 2019

Solved "Unable To Locate Package" Error In Kali Linux

If you have installed Kali Linux as your operating system and has been getting the following error then this post will solve your error. Basically this error is due to unwanted entries in source.list file.




To solve this simply open your terminal and enter the following commands:


cd etc/apt/ 


(This command will locate the source.list file)

Now open the source.list file using the command:


sudo nano sources.list


Now just copy the below codes and paste it into the source.list file and save it.



deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
# For source package access, uncomment the following line
# 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
deb http://old.kali.org/kali moto main non-free contrib
# For source package access, uncomment the following line
# deb-src http://old.kali.org/kali moto main non-free contrib

Write and quit the file using Ctrl + O and Ctrl + S.

Then finally type:


sudo apt-get update


now your are done solving the error. Now install your required packages without any errors.



Solved "Unable To Locate Package" Error In Kali Linux
NikTech - The Best Network For Tech Info

0 comments:

Post a Comment


Top