Error occurred during the signature verification

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

can someone please help.

Welcome @yoitsdope

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:

https://www.linux.org/threads/small-issue-with-apt-get-update.61981/

But because I was curious I tried Kali, and this sequence works for me:

$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
$ echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
$ sudo cat /etc/apt/sources.list.d/elastic-8.x.list
deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main
$ sudo apt update     
Hit:1 https://artifacts.elastic.co/packages/8.x/apt stable InRelease
Hit:2 http://http.kali.org/kali kali-rolling InRelease
All packages are up to date.                    
$ sudo apt install elasticsearch
Installing:                     
  elasticsearch

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0
  Download size: 680 MB
  Space needed: 1,309 MB / 62.2 GB available

Get:1 https://artifacts.elastic.co/packages/8.x/apt stable/main amd64 elasticsearch amd64 8.19.19 [680 MB]
Fetched 680 MB in 17s (39.4 MB/s)                                                                                                                                                                                   
Selecting previously unselected package elasticsearch.
(Reading database… 431060 files and directories currently installed.)
Preparing to unpack …/elasticsearch_8.19.19_amd64.deb…
Creating elasticsearch group... OK
Creating elasticsearch user... OK
Unpacking elasticsearch (8.19.19)…
Setting up elasticsearch (8.19.19)…
--------------------------- Security autoconfiguration information ------------------------------
.... 
$ cat /etc/os-release 
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
VERSION_ID="2026.3"
VERSION="2026.3"
VERSION_CODENAME=kali-rolling
ID=kali
ID_LIKE=debian
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"
ANSI_COLOR="1;31"

$ sudo apt update --audit
Hit:1 https://artifacts.elastic.co/packages/8.x/apt stable InRelease
Hit:2 http://http.kali.org/kali kali-rolling InRelease
All packages are up to date.                    
Audit: The sources.list(5) entry for 'https://artifacts.elastic.co/packages/8.x/apt' should be upgraded to deb822 .sources

I am using instructions from: