在 Debian、Ubuntu 或 Linux Mint 上运行时,您可能会看到缺少公共 GPG 密钥错误(“NO_PUBKEY”) apt update
/ apt-get update
. 当您添加存储库而忘记添加其公钥时,可能会发生这种情况,或者在尝试导入 GPG 密钥时可能出现临时密钥服务器错误。
当运行一个apt update
/apt-get update
,或者尝试使用一些 GUI 工具刷新软件源,apt 会抱怨无法下载所有存储库索引,显示如下错误:
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://ppa.launchpad.net/linuxuprising/apps/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EA8CACC073C3DB2A W: Failed to fetch https://ppa.launchpad.net/linuxuprising/apps/ubuntu/dists/bionic/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EA8CACC073C3DB2A W: Some index files failed to download. They have been ignored, or old ones used instead.