2009年11月20日 星期五

[Linux] Update Manager : An error occurred during the signature verification (Hash Sum mismatch) @ Ubuntu 9.10

前陣子安裝 Ubuntu 9.10 i386 Desktop ,印象中當時作系統更新時還算正常,但之後改過 /etc/hostname ,也不知何時開始,更新作業系統就無法成功,出現的訊息大多是 Hash Sum mismatch ,後來試了這篇 [ubuntu] Update Manager Problem... Invalid signature? - Page 2 - Ubuntu Forums ,看到許多人說 Aearenda 提到的更新 /etc/hostname 與 /etc/hosts 的修正,就可以更新成功囉!可惜的,我仍沒有解決這個問題,或採用下面指令也是如此。



  • # sudo apt-get update -o Acquire::http::No-Cache=True


但我發現,我有一台主機 Ubuntu 9.04 的,使用上述的方式的確有效,但 Ubuntu 9.10 依舊沒有解決。慶幸的最後仍有找到方式,以下是相關的執行樣貌,最後我是使用 Bug #24234 in apt (Ubuntu): “apt-get update failing with bad signature.” finjay 提到的解法,解決了 Ubuntu 9.10 的更新問題!



  • 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. 使用 sudo apt-get update -o Acquire::http::No-Cache=True ,但仍無解決

  2. 使用修正 /etc/hosts 與 /etc/hostname 的關係,仍無解決

  3. 最後使用 finjay 提到的解法,就更新成功囉



以下是一些相關的錯誤訊息,也忘了到底是在那個階段出現的 :P 畢竟兩種是接續著試,有無相依性也不確定,再說問題解決後環境也不再,無法再測試,僅留下來當作參考囉。


user@Ubuntu910:~$ sudo apt-get update
Hit http://tw.archive.ubuntu.com karmic Release.gpg
Ign http://tw.archive.ubuntu.com karmic/main Translation-en_US
Ign http://tw.archive.ubuntu.com karmic/restricted Translation-en_US
Ign http://tw.archive.ubuntu.com karmic/universe Translation-en_US
Ign http://tw.archive.ubuntu.com karmic/multiverse Translation-en_US
Get:1 http://tw.archive.ubuntu.com karmic-updates Release.gpg [189B]
Ign http://tw.archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://tw.archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://tw.archive.ubuntu.com karmic-updates/universe Translation-en_US
Ign http://tw.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Hit http://tw.archive.ubuntu.com karmic Release
Get:2 http://tw.archive.ubuntu.com karmic-updates Release [44.1kB]
Hit http://tw.archive.ubuntu.com karmic/main Packages
Err http://tw.archive.ubuntu.com karmic-updates Release

Hit http://tw.archive.ubuntu.com karmic/restricted Packages
Hit http://tw.archive.ubuntu.com karmic/main Sources
Hit http://tw.archive.ubuntu.com karmic/restricted Sources
Hit http://tw.archive.ubuntu.com karmic/universe Packages
Hit http://tw.archive.ubuntu.com karmic/universe Sources
Hit http://tw.archive.ubuntu.com karmic/multiverse Packages
Hit http://tw.archive.ubuntu.com karmic/multiverse Sources
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://tw.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Hit http://tw.archive.ubuntu.com karmic Release
Get:2 http://tw.archive.ubuntu.com karmic-updates Release [44.1kB]
Hit http://tw.archive.ubuntu.com karmic/main Packages
Err http://tw.archive.ubuntu.com karmic-updates Release

Hit http://tw.archive.ubuntu.com karmic/restricted Packages
Hit http://tw.archive.ubuntu.com karmic/main Sources
Hit http://tw.archive.ubuntu.com karmic/restricted Sources
Hit http://tw.archive.ubuntu.com karmic/universe Packages
Hit http://tw.archive.ubuntu.com karmic/universe Sources
Hit http://tw.archive.ubuntu.com karmic/multiverse Packages
Hit http://tw.archive.ubuntu.com karmic/multiverse Sources
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Hit http://security.ubuntu.com karmic-security Release
Hit http://security.ubuntu.com karmic-security/main Packages
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://security.ubuntu.com karmic-security/main Sources
Hit http://security.ubuntu.com karmic-security/restricted Sources
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://security.ubuntu.com karmic-security/universe Sources
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://security.ubuntu.com karmic-security/multiverse Sources
Fetched 190B in 11s (16B/s)
Reading package lists... Done
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://tw.archive.ubuntu.com karmic-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

W: Failed to fetch http://tw.archive.ubuntu.com/ubuntu/dists/karmic-updates/Release

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


沒有留言:

張貼留言