当我尝试apt-get update
在 Debian 上使用命令时,我发现自己陷入了一种错误循环,其中包含以下两个错误:NO_PUBKEY 和 KEYEXPIRED
W: There is no public key available for the following key IDs:
4D270D06F42584E6
W: GPG error: http://archive.debian.org lenny/updates Release: The following signatures were invalid: KEYEXPIRED 1356982504
W: GPG error: http://archive.debian.org lenny/volatile Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DFD993306D849617
W: Failed to fetch http://archive.debian.org/debian-securty/dists/lenny/updates/main/source/Sources 404 Not Found [IP: 130.89.148.13 80]
首先我得到 KEYEXPIRED 错误(使用 NO_PUBKEY 但现在不是重点)然后我尝试了这个解决方案:
http://community.aegirproject.org/node/757/revisions/2077/view
(但我不确定我做的一切是否正确)
W: There is no public key available for the following key IDs:
4D270D06F42584E6
W: GPG error: http://archive.debian.org lenny/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
W: GPG error: http://archive.debian.org lenny/volatile Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DFD993306D849617
W: Failed to fetch http://archive.debian.org/debian-securty/dists/lenny/updates/main/source/Sources 404 Not Found [IP: 130.89.148.13 80]
然后我得到 NO_PUBKEY 错误,我尝试了这个解决方案,然后我回到了最初的问题:(
sudo apt-key adv --recv-keys --keyserver keys.gnupg.net
(8位数字键)
你可以帮帮我吗?