0

Heys dudes,

More someone got error when trying update cache of the Google K8s repositories? I have been got the error about NO_PUBKEY

Err:10 https://packages.cloud.google.com/apt kubernetes-xenial InRelease        
  The following signatures were invalid: EXPKEYSIG 6A030B21BA07F4FB Google Cloud Packages Automatic Signing Key <[email protected]> The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B57C5C2836F4BEB

and

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.cloud.google.com/apt kubernetes-xenial InRelease: The following signatures were invalid: EXPKEYSIG 6A030B21BA07F4FB Google Cloud Packages Automatic Signing Key <[email protected]> The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B57C5C2836F4BEB
W: Failed to fetch http://apt.kubernetes.io/dists/kubernetes-xenial/InRelease  The following signatures were invalid: EXPKEYSIG 6A030B21BA07F4FB Google Cloud Packages Automatic Signing Key <[email protected]> The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B57C5C2836F4BEB
W: Some index files failed to download. They have been ignored, or old ones used instead.

Something was changed?

1 Answer 1

1

As per compute/docs/troubleshooting/known-issues:

On Debian and Ubuntu based systems, including your local workstations, you might encounter an error similar to the following example: [...] The following signatures were invalid: XXXX [...]

To resolve this error, get the latest valid apt-key.gpg key file from https://packages.cloud.google.com by running the following command:

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
1
  • My doubt was this if the key was changed or something more deep. Valeu Du.
    – Vader
    Commented Apr 5, 2021 at 13:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.