Debian-Lenny

apt-get upgrade 未找到 IP。Sources.list 問題?(萊尼)

  • February 8, 2013

runnongapt-get update命令時出現很多這樣的錯誤

Ign http://archive.debian.org lenny/volatile/main Sources/DiffIndex
Ign http://archive.debian.org lenny/volatile/contrib Sources/DiffIndex
Ign http://archive.debian.org lenny/volatile/non-free Sources/DiffIndex
Hit http://archive.debian.org lenny/updates/main Packages
Hit http://archive.debian.org lenny/updates/contrib Packages
Hit http://archive.debian.org lenny/updates/non-free Packages
W: GPG error: http://archive.debian.org lenny/updates Release: The following signatures were invalid: KEYEXPIRED 1356982504
W: GPG error: http://archive.debian.org lenny/volatile Release: The following signatures were invalid: KEYEXPIRED 1358963195
W: You may want to run apt-get update to correct these problems

為什麼我不能更新?..所有這些都是在執行upgrade命令後完成的。

這是我的sources.list

deb http://archive.debian.org/debian/ lenny main contrib non-free
deb-src http://archive.debian.org/debian/ lenny main contrib non-free
deb http://archive.debian.org/debian-security lenny/updates main contrib non-fre
e
deb-src http://archive.debian.org/debian-security lenny/updates main contrib non
-free
deb http://archive.debian.org/debian-volatile lenny/volatile main contrib non-fr
ee
deb-src http://archive.debian.org/debian-volatile lenny/volatile main contrib no
n-free

這一切與Debian GNU/Linux 6.0

問題在於 Debian 6.0 和 Lenny 匹配。我剛剛更新了所有內容以將其替換為source.list

# main repo
deb http://ftp.debian.org/debian/ squeeze main
deb-src http://ftp.debian.org/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

然後升級了。

現在一切都變得更好了。

用於簽署檔案的密鑰可能已輪換。您需要更新包含存檔密鑰的包:

sudo apt-get --allow-unauthenticated install debian-archive-keyring

引用自:https://serverfault.com/questions/477008