不受信任的包裝警告

不受信任的包裝警告

當我嘗試更新系統時,我收到以下警告:

W: GPG error: http://archive.canonical.com vivid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991
W: GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991
W: GPG error: http://security.ubuntu.com precise-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991
W: GPG error: http://security.ubuntu.com vivid-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://ubuntu.mirror.lhisp.com vivid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://ubuntu.mirror.lhisp.com vivid-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://ubuntu.mirror.lhisp.com vivid-proposed Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://ubuntu.mirror.lhisp.com vivid-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32

我嘗試使用以下方法添加丟失的鍵:

sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys KEY_VALUE

我收到以下訊息,

gpg: requesting key C0B21F32 from hkp server keyserver.ubuntu.com 
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <[email protected]>" not changed 
gpg: Total number processed: 1
gpg:              unchanged: 1

我也嘗試過這個解決方案:

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update

但我仍然收到上述警告。

答案1

有一個漏洞描述你的情況。

可以幫助修復的解決方法

導航至該目錄/etc/apt/trusted.gpg.d/並刪除未使用的金鑰。

了解更多信息

答案2

當鏡像伺服器尚未完全更新時,就會發生這種情況。

您可以稍後再嘗試,或切換到另一個鏡像

系統設定 -> 軟體和更新。

相關內容