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 in your computer.
Today we will resolve a common issue which is – “E : Unable to locate”.
Solve | unable to locate package Kali Linux
If this similar problem in your computer, then I will show you, follow step-by-step proccess.
I can say that after reading this post, you will never have to face this problem on your computer.
Follow this steps in the below
Step : 1 – Open your Terminal.
Step : 2 – Type – ” nano /etc/apt/source.list ” and hit Enter.
Step : 3 – And you can see we have open 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 : 4 – click the Link Given in the Below and the Download the repository.
Step : 5 – Click Me to Kali Linux Repository
Step : 6 – After Open the Link you can see, we are on this page of Kali talks official documentation.
Step : 7 – Then find the ” Kali sources.list Repositories ” and click on this link.
Step : 8 – Now, we are on Kali sources.list repositories
Step : 9 – Then Copy the Command of ” Regular Repositories “.
Step : 10 – After copy, this command, come back to your terminal and paste it over here.
Step : 11 – After Paste this command hit Enter Two Time.
Step : 12 – Then Go to that Page Again and here we have these source repositories.
Step : 13 – Copy this “source repositories” command.
Step : 14 – Come back on the terminal and Paste it here, but now not need to hit Enter.
Step : 15 – So you can see repositories are now added.
Step : 16 – After that you need to press ” ctrl + O ” key on the keyboard.
Step : 17 – Then hit Enter and it will save
Step : 18 – For Exit this sources.list file just press “Ctrl+X” on the keyborad.
Step : 19 – Now you can try to install any Pkg.
kali linux latest version|| Kali Linux Nethunter
And I can tell guaranty that now you will not get this error – “E : Unable to locate”.
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.