Friday, 25 July 2014

[Kali Linux] How to Fix "Unable to locate package"








Do you ever experience something like this you are about to install something?


E: Unable to locate package...

Here is the solution, download the source.list below and place it in the /etc/apt/ . Replace the old one with the one that you have downloaded.


Permission Denied?
If you cannot copy and paste the source.list to the specific directory even though as root, you need to type in the terminal 

Code:
sudo nautilus

You will be prompted to enter your password. Enter your password and try again copy and paste the file into the directory.

What's next?
After done replacing the source.list, open your terminal and type these command.

Code:
sudo apt-get update
Code:
sudo apt-get -f install


After you have done all of these steps, you now can enjoy installing.