Kali Linux Fix Unable to Locate Package Fixed

Опубликовано: 30 Сентябрь 2024
на канале: The Tech Wing
80
1

You may have an issue with your /etc/apt/sources.list file which is where the apt command looks for the installation of new packages. According to the Kali official docs:

The single most common causes of a broken Kali Linux installation are following unofficial advice, and particularly arbitrarily populating the system’s sources.list file with unofficial repositories.

You can try making a backup of your current sources.list file then creating a new one with the "default" source entry. You'll need to run these as root/with sudo:
cp /etc/apt/sources.list /etc/apt/sources.list.backup
then:
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" /etc/apt/sources.list
Now try running sudo apt update. If that completes successfully, try installing your package again. See the link above for additional information that may be useful depending on your exact Kali release.

Share Improve this answer Follow

answeredMar 1 '19 at 20:11



baelx
2,520●11 gold badge●1313 silver badges●1818 bronze badges

Up vote-2Down vote

in update of linux 2019.4 open terminal and use given command: etc/apt/sources.list.d afterwards create a new document file and past the repositories in the mousepad.

deb http://http.kali.org/kali kali-rolling main non-free contrib deb-src http://http.kali.org/kali kali-rolling main non-free contrib deb http://http.kali.org/kali kali-rolling main non-free contrib
after that use this command to update your kali linux repositories: sudo apt-get update

#kali #Linux