Best Solution – E: Unable to Locate 2022 Package Error in Kali Linux

unable to locate

Many times when you install any pkg in your Kali Linux, then you will get an error – “E: Unable to locate“.

Due to this error, you are unable to install your desired pkg on your computer and it can make problems for you during learning Kali Linux or penetration testing.

So today we will resolve a common issue which is – “E: Unable to locate in Kali Linux“. Even you can fix this problem in other operating systems also.

So let’s get started !!


Solve | Unable to Locate Package Kali Linux

If this similar problem is in your Kali Linux Machine, then I will show you how you can solve this error, the process step-by-step.

I can say that after reading this post, you will never have to face this problem on your computer. So follow the steps the below

Step: 1Open your Terminal.
Step: 2Type – ” nano /etc/apt/source.list ” and hit Enter.
Step: 3And you can see we have opened the “Sources.list” file.

(Unable to locate – This error is the repository issue you can see I don’t have any repositories in this sources.list, so we need to add the repositories.)

Step: 4Click the Link Given in Below and Download the repository.
Step: 5Click Me to Kali Linux Repository
Step: 6After opening the Link you can see, that we are on this page of Kali talks official documentation.
Step: 7Then find the ” Kali sources.list Repositories ” and click on this link.
unable to locate
Step: 8Now, we are on Kali sources.list repositories
Step: 9Then Copy the Command of ” Regular Repositories “.
Step: 10After the copy, of this command, come back to your terminal and paste it over here.
Step: 11After Paste this command hit Enter Two Time.
Step: 12Then Go to that Page Again and here we have these source repositories.
Step: 13Copy this “source repositories” command.
Step: 14Come back to the terminal and paste it here, but now do not need to hit Enter.
Step: 15So you can see repositories are now added.
Step: 16After that, you need to press the ” Ctrl + O ” key on the keyboard.
Step: 17Then hit Enter and it will save.
Step: 18For Exit these sources.list file just presses “Ctrl+X” on the keyboard.
Step: 19Now you can try to install any Pkg.

I can tell guaranty that now you will not get this error – “E: Unable to locate”. Still, if your problem is not fixed then you can join our community forum and ask about it from experts.


If you still have this problem or any other such problem, then you can tell me in the comment box.

And for this problem do not come to your friends, you can also share it with your friends.

Thank You!!

Pawan Chauhan

I'm a Web Developer and Software Trainer.

Leave a Reply