Unable to locate package - Solved

Unable to locate package - Solved

Unable to locate package - Solved

Kali Linux has a problem "Unable to locate package".
When we use "apt-get install xxx" for install any program and tool kali Linux showing error  "Unable to locate package"
when over OS is not updated So  this message shows us

How to Solve Unable to locate package

It's a very essay to solve follow these steps to fix this problem
Unable to locate package - Solved

Step 1 Open terminal

Simply open your kali Linux Terminal and type following Command
"apt-get update"
This command updates your OS very essay

Step 2. Upgrade You kali Linux

Now type "apt-get upgrade"
this command upgrade your Kali Linux

Step 3. Edit Sources.list

This list is the main reason to show this error in Kali Linux.
In this step, we are update "sources.list" by input the same new code and same new links
Take a backup of sources.list if you do any mistake in sources.list update you replace it again with secure

Follow these steps for update sources.list

Step 1.backup sources.list

We are got this list on ["/etc/apt/"].
Open terminal and type
"cp   /etc/apt/sources.list  /root/Desktop"
This command copy sources.list on your Desktop.
If you have any problem in command SO open File manager and visit on this path [  /etc/apt/  ] and copy "sources.list" on Desktop

Step 2. Open sources.list for edit

Simple Open sources.list in any Text editor and Remove all txt a paste new txt in sources.list
new text give bellow
[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]

 Copy this and past in sources.list and save it.

Step 3. update and upgrade your system again

open terminal and
"apt-get update"
and
"apt-get upgrade 

Step 4.  Reboot your system

now Restart your kali Linux OS.

Now if you got any problem share me by command and if you have any suggest command and share your problem solved and not

Thank You So Mush JI

Give Same Suggestion