There might be instances where kali can’t locate packages at all. Fix below:
Step 1) sudo mousepad /etc/apt/sources.list
- Add # in front of all existing lines
- Add the following line without #
deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware
![](https://benleeyr.wordpress.com/wp-content/uploads/2023/12/image-3.png?w=903)
Step 2) sudo apt-get update
Step 3) sudo apt install <package>