GPG-KEY丢失问题的修复

在Ubuntu或者Debian中,用apt-get更新时,,我可能经常出现 这种错误:

W: GPG error: http://kubuntu.org edgy Release: The following
signatures couldn't be verified because the public key
is not available: NO_PUBKEY A506E6D4DD4D5088
W: GPG error: http://wine.budgetdedicated.com edgy
Release: The following signatures couldn't be verified
because the public key is not available: NO_PUBKEY
58403026387EE263
W: You may want to run apt-get update to correct these problems

这是由于GPG-KEY丢失,可以用下列命令来修复

gpg --keyserver hkp://subkeys.pgp.net --recv-keys 58403026387EE263
gpg --export --armor 58403026387EE263| sudo apt-key add -

其中的58403026387EE263也可以只取其最后八位(387EE263)