on my kali linux system every time i run apt upgrade i get this error
Warning: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. OpenPGP signature verification failed: ``https://artifacts.elastic.co/packages/8.x/apt`` stable InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 46095ACC8548582C1A2699A9D27D666CD88E42B4 is not bound: No binding signature at time 2026-07-21T12:23:13Z because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance because: SHA1 is not considered secure since 2026-02-01T00:00:00Z Warning: Failed to fetch ``https://artifacts.elastic.co/packages/8.x/apt/dists/stable/InRelease`` Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 46095ACC8548582C1A2699A9D27D666CD88E42B4 is not bound: No binding signature at time 2026-07-21T12:23:13Z because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance because: SHA1 is not considered secure since 2026-02-01T00:00:00Z Warning: Some index files failed to download. They have been ignored, or old ones used instead.
i tried running wget -qO - ``https://artifacts.elastic.co/GPG-KEY-elasticsearch`` | sudo apt-key add - and i got this error sudo: apt-key: command not found
That error is because apt-key is not installed on your system. And I know zero about Kali linux specifically, but apt-key has been marked as deprecated for a while in Ubuntu at least, and removed in 26.04.
EDIT: It might help if you explain how you installed elasticsearch (specific commands), and maybe also when and what specifically, and what you want to do now.
There seems several discussions regarding changes wrt kali linux and 3rd party repo installation via apt, e.g. this specific thread:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.