簽名未驗證

簽名未驗證

這些是我嘗試了互聯網上提到的幾種修復後仍然存在的簽名錯誤

W: GPG error: http://deb.opera.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 517590D9A8492E35
W: GPG error: http://archive.canonical.com trusty 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://extras.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: GPG error: http://linux.dropbox.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FC918B335044912E
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://archive.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: https://private-ppa.launchpad.net raring Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E131728675254D99
W: GPG error: http://archive.ubuntu.com trusty-updates 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://archive.ubuntu.com trusty-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: https://private-ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E131728675254D99
W: GPG error: http://archive.ubuntu.com trusty-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://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0CC3AFF5CEDF0F40
W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 32B18A1260D8DA0B

我一直在繞圈子尋找解決方案,但還沒有任何效果,請提出一些可以解決這些錯誤的建議。

我已經嘗試過的:

  1. y-ppa-經理
  2. 手動刪除清單並重新產生它。

因此,請不要對這些方法標記重複並提出其他建議。

答案1

你的 apt 鍵或添加/更改存儲庫或其他東西出了問題......我不知道是什麼

  • 您做了什麼操作導致了這些錯誤?

但這裡有一些針對您症狀的創可貼解決方案:


只為了添加缺少的鍵,這個命令應該可以工作(用您實際丟失的鍵替換“2EA8...”字串)

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2EA8F35793D8809A

--keyserver keys.gnupg.net如果 ubuntu 上沒有的話可以嘗試
[參見https://askubuntu.com/a/141088/129271]


看起來有點像你沒有正確添加一些 PPA,根據 Ubuntu 的說明,它應該自行「取得 PPA 的金鑰」。這是從以下地點出發的航站路線:https://help.ubuntu.com/community/Repositories/Ubuntu

步驟 2:打開終端機並輸入:

$ sudo add-apt-repository ppa:user/ppa-name

將 'ppa:user/ppa-name' 替換為您在上面記下的 PPA 位置。

您的系統現在將取得 PPA 的金鑰。這使您的 Ubuntu 系統能夠驗證 PPA 中的軟體包自建置以來沒有受到干擾。


如果有一個您的軟體來源有問題,這應該會將它們恢復到“預設值”。我會先備份所有內容,以防萬一/ect/apt/sources.list/ect/apt/sources.list.d/我不知道你的 Ubuntu 版本是什麼,我不確定「預設值」應該是什麼,或者你是否添加了額外的 PPA 或其他來源。運行lsb_release -a應該會告訴您有關您的版本和“代號”的信息

備份sources.list文件

只需將它們複製到某處的備份資料夾中,這應該可以工作:

sudo mv /etc/apt/sources.list /etc/apt/sources.list.old
sudo mv /etc/apt/sources.list.d /etc/apt/sources.list.d.old

恢復預設Ubuntusources.list

  • 對於 Ubuntu,如果你這樣做,它應該會產生一個新的sources.list文件

    1. 刪除舊檔案(sudo rm /etc/apt/sources.list但是sudo rm -R /etc/apt/sources.list.d首先備份)。

    2. 然後執行下列任一操作:

      • 運行軟體來源(sudo software-properties-gtksudo software-sources)選擇/選取一些儲存庫,選擇伺服器並更新。

      • 產生一個新的http://repogen.simplylinux.ch/使用您的版本和國家/地區(選擇本地鏡像),然後使用gksudo gedit /etc/apt/sources.list終端或在終端中將其複製並貼上到新的sources.list中sudo nano /etc/apt/sources.list

網站http://repogen.simplylinux.ch/還有很多可選的 PPA,看起來非常有用。 [禮貌如何恢復預設儲存庫?]

答案2

在知道 apt 無法處理超過 40 個金鑰後,我開始從 /etc/apt/trusted.gpg.d 中刪除 ppa 及其金鑰

這樣做之後,我更新了 apt-cache,我的問題就解決了。

相關內容