更新时出现此错误,我该如何解决?

更新时出现此错误,我该如何解决?

签名验证时出错。存储库未更新,将使用以前的索引文件。GPG 错误:

https://packages.cloud.google.com/apt kubernetes-xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B53DC80D13EDEF05
W: Failed to fetch http://apt.kubernetes.io/dists/kubernetes-xenial/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B53DC80D13EDEF05
W: Some index files failed to download. They have been ignored, or old ones used instead.

答案1

这将解决密钥问题,最后用您的实际密钥替换该密钥。

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B53DC80D13EDEF05

相关内容