Kali Linux

Fix “Unable to locate package” error in Kali Linux.

This error is basically due to entries in the sources.list file.
Open /etc/apt/ using following command:
cd /etc/apt/

Open the sources.list file using:

sudo nano sources.list

Now paste the following code at the last line of the file:

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

Write and quit the file using CTRL+O and CTRL+X

Now just run:
sudo apt-get update

and make your Whatsapp Bot in Kali Linux.

Now your error is gone you can install any package 🙂

Thanks for reading.

53 thoughts on “Fix “Unable to locate package” error in Kali Linux.”

  1. hello jagjeet,
    i m having problem in installing wireless adapter in my laptop. im unable to use wifi in kali 2.0. can u suggest me how to remove that issue

    Like

  2. in my linux 2018.3 gives problem unable to locate package afer setting reposetery settings please help me …………………………

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package openssh

    Like

  3. The repository ‘http://repo.kali.org/kali kali-rolling Release’ does not have a Release file.
    this error coming plz.. help me

    Like

  4. root@kali:~# apt-get install lib32stdc++6 lib32ncurses5 lib32zl
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package lib32zl

    I’m getting this error, after following those steps.What to do?

    Like

Leave a comment