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.
apt update
orapt-get update
?apt search ".*"