How to fix the error "E: Unable to locate package"
For those of you who use linux, have you ever experienced an error when installing tools on linux or "E: Unable to locate package"? if so, do you already know how to solve it? well, on this occasion I will share how to solve the error E: Unable to locate when installing tools on linux. This error lies in the repository file, which is source.list, usually the error is because maybe because there is something incomplete with the file so we have to add the repository, it's pretty easy to just follow the steps I give guaranteed problem resolved, oh yes here I am using kali linux yes for other linux distributions the way is the same, only the difference is that the repositories that he added must be adjusted to the linux distro. yup just go to the steps
How to Fix Error E: Could not get lock / var / lib / dpkg / lock - open
- The first step we have to find a repository for Kali linux can be found at https://docs.kali.org/general-use/kali-linux-sources-list-repositories. If you use the new Kali Linux it means you take the rolling Linux Kali
- After that we edit the repository file with the command:
sudo gedit /etc/apt/source.list
- After that add it at the bottom with the new repository
- Then Save
- After that, update with the command:
apt-get update
- If the update is complete, the problem is automatically resolved, you can install the tools again
For other types of linux, for example, like ubuntu, debian or others, the method is the same, only when we add a different repository, you have to enter the repository according to the linux you are using.