无法删除过期的密钥

无法删除过期的密钥

当我尝试手动获取更新时,出现了一个 gpg 错误:

W: GPG error: http://apt.freegeek.org precise Release: The following signatures were invalid: KEYEXPIRED 1422819173
W: Duplicate sources.list entry http://apt.freegeek.org/ubuntu/ precise/main i386 Packages (/var/lib/apt/lists/apt.freegeek.org_ubuntu_dists_precise_main_binary-i386_Packages)

当我尝试删除密钥时, sudo apt-key del 出现以下信息:

gpg: key "1422819173" not found: eof
gpg: 1422819173: delete key failed: eof

这使得更新管理器无法正常工作。任何帮助都值得感激。-k。

答案1

我已经添加deb http://apt.freegeek.org/ubuntu precise main到我的/etc/apt/sources.list

并得到错误

W: GPG error: http://apt.freegeek.org precise InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0261FE3D0875A635

因此我请求接收 freegreek.org 的最新 GPG 密钥:

sudo gpg --keyserver pgpkeys.mit.edu --recv-key 0261FE3D0875A635

并添加了密钥:

sudo gpg -a --export-keys 0261FE3D0875A635 | sudo apt-key add -

然后启动sudo apt-update但出现同样的错误:

W: GPG error: http://apt.freegeek.org precise InRelease: The following signatures were invalid: KEYEXPIRED 1422819173

因此我检查了关键列表:

gpg --list-keys
/root/.gnupg/pubring.gpg
------------------------
pub   4096R/0875A635 2009-07-13 [expired: 2015-02-01]
uid                  Freegeek Portland Packages (archive signing only) <[email protected]>

你可能会发现 freegeek.org 存储库的最新密钥也已过期2015-02-01

因此,遗憾的是,一旦 freegeek.org 存储库更新其密钥来签署文件,您就无法自行解决这个问题,除非您导入新密钥。

如果您没有使用这些存储库的包,则可以安全地忽略这些消息。如果您从中删除或注释掉存储库,则可以删除该消息/etc/apt/sources.list

#deb http://apt.freegeek.org/ubuntu precise main

相关内容