Skip to content

Instantly share code, notes, and snippets.

@brunoleles
Last active August 20, 2025 19:07
Show Gist options
  • Select an option

  • Save brunoleles/c4f1b7cc3a17b888beae8ebaf20c4e72 to your computer and use it in GitHub Desktop.

Select an option

Save brunoleles/c4f1b7cc3a17b888beae8ebaf20c4e72 to your computer and use it in GitHub Desktop.
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY XXXXXXXXXXXXX

Problem

$> sudo apt update
...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 InRelease: The following signatures couldn\'t be verified because the public key is not available: NO_PUBKEY 6A26B1AE64C3C388
W: Failed to fetch https://repo.mongodb.org/apt/ubuntu/dists/jammy/mongodb-org/6.0/InRelease  The following signatures couldn\'t be verified because the public key is not available: NO_PUBKEY 6A26B1AE64C3C388
W: Some index files failed to download. They have been ignored, or old ones used instead.

Fix

$> sudo apt-key del 6A26B1AE64C3C388
$> sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 6A26B1AE64C3C388
$> sudo apt-get update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment