Errore:1 https://apt.grafana.com stable InRelease
Le seguenti firme non sono state verificate perché la chiave pubblica non è disponibile: NO_PUBKEY 9E439B102CF3C0C6
The key was emergency-rotated, as fallout from the CircleCI breach.
Whenever there’s a key problem with the repo signing key, I’ve found it best to check https://packages.grafana.com/oss/ – there’s usually something useful there. In this case:
The GPG key used to sign the APT repository (fingerprint 4E40DDF6D76E284A4A6780E48C8C34C524098CB6) was rotated on 2023-01-12 and replaced with a new key with fingerprint 0E22EB88E39E12277A7760AE9E439B102CF3C0C6.
If you enabled the repository before that, you will see errors when running apt update.
To fix this, re-run the commands below to fetch the new key. See the following blog post for more information: Grafana Labs update regarding CircleCI security updates | Grafana Labs
(I had to stop there, I’ve not used the community pages from this account before so hit a new-user 2-links limit)
Thanks for your answer.
I had already found the news about the key rotation and downloaded the new key, please see the fingerprint posted in my previous message.
But I still get an error from apt, and the error message is pointing to new key: NO_PUBKEY 9E439B102CF3C0C6
EDIT: ok I was missing the command gpg --dearmor on the key, now it works