Header Ads








How to Fix Kali Linux "Unable to locate package"

How to Fix Kali Linux "Unable to locate package"

May be you encounter this when updating or installing apps in Kali Linux  apt-get install "your apps".

The single most common causes of a broken Kali Linux installation are following unofficial advice, and particularly arbitrarily populating the system’s sources.list file with unofficial repositories. The following post aims to clarify what repositories should exist in sources.list, and when they should be used.
 

Here is the solution, update  your source.list from doc.kali.org

1.The Kali Rolling Repository
kali-rolling is our current active repository since the release of Kali 2016.1. Kali Rolling users are expected to have the following entries in their sources.list:

2.Retired Kali sana (2.0) Repositories
For access to the retired sana repositories, have the following entries in your sources.list:

3.Retired Kali moto (1.0) Repositories
For access to the retired moto repositories, have the following entries in your sources.list:



Copy this on your source.list


NOTE: Any additional repositories added to the Kali sources.list file will most likely BREAK YOUR KALI LINUX INSTALL.

For beginner who don't know how to place the source list here is a step by step.

1. Click Places the choose Computer.



2. Find "etc" folder.

3. Find "apt" folder.

4. Find source.list  open with gpedit  (notepad in linux).


5. Now  copy paste  the repository on this post above then save.



6. Open your Terminal (cmd like)  type the fallowing command then press enter

apt-get update && apt-get install -f 



Now you will get updated  list... wait it to finish.



7. Now Done try to install your app now

Sample apt-get install hostapd




*******************************************************************************
additional if you want to get all sofware update just enter this command

apt-get update





BLOGMYTUTS TIPS: If you still have this error after updating source list check your LETTER use all small letter sometimes CAPSLOCK matters!!





You Can Check More About Kali Repositories Here:
http://docs.kali.org/general-use/kali-linux-sources-list-repositories

You might also like :

No comments

blogmytuts. Powered by Blogger.