執行 apt-get update、GPG、BADSIG 等時出現各種錯誤

執行 apt-get update、GPG、BADSIG 等時出現各種錯誤

好吧,我不知道發生了什麼,這就是我寫在這裡的原因。我看過很多問題,gpg 錯誤問題的解決方案是

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

或者

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $KEY_FROM_ERROR

好吧,我已經嘗試了這兩種方法,但都沒有成功。我也不斷收到不一致的錯誤,例如:

W: GPG error: http://uk.archive.ubuntu.com oneiric Release: The following   signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>

或者

E: Could not open file /var/lib/apt/lists/uk.archive.ubuntu.com_ubuntu_dists_oneiric_multiverse_binary-i386_Packages.IndexDiff - open (2: No such file or directory)

或有時甚至沒有錯誤地完成。我在 Virtualbox 4.1.8 上執行 Ubuntu 11.10 Server。我真的很困惑,所以非常感謝任何幫助

編輯1:

又一條錯誤訊息

W: GPG error: http://uk.archive.ubuntu.com oneiric-security Release: Unknown error executing gpgv

編輯2:

還有更多,我想完全清楚地表明,這些來自連續運行

apt-get update

人們認為,當您運行程式並且不改變任何東西時,期望得到一致的輸出是很自然的嗎?

W: GPG error: http://uk.archive.ubuntu.com oneiric Release: The following  signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
W: GPG error: http://uk.archive.ubuntu.com oneiric-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
W: Failed to fetch http://uk.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg  rename failed, No such file or directory ( -> /var/lib/apt/lists/partial/uk.archive.ubuntu.com_ubuntu_dists_oneiric-updates_Release.gpg). 

E: Some index files failed to download. They have been ignored, or old ones used instead.

答案1

我遇到了類似的問題,但上述方法都不適合我,但是以下方法有效:

  1. 開啟更新管理器
  2. 前往設定
  3. 按一下 Ubuntu 軟體標籤
  4. 取消選取(停用)選單底部的「可從 CD-ROM/DVD 盒安裝」中的任何選項

問候

答案2

更新您的軟體來源從主伺服器下載鏡像到其他伺服器,選擇最好的伺服器然後讓它更新。跑步sudo -apt-get update && sudo apt-get upgrade

如果您仍然遇到問題,請寄回您的列印件。

相關內容