![更新 Debian 6 时出现问题](https://linux22.com/image/650999/%E6%9B%B4%E6%96%B0%20Debian%206%20%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98.png)
我正在尝试更新 Debian 6 服务器,但更新后出现以下输出并出现一些错误sudo aptitude update
:
Ign http://archive.debian.org oldstable Release.gpg
Ign http://archive.debian.org/debian/ oldstable/contrib Translation-en
Ign http://archive.debian.org/debian/ oldstable/main Translation-en
Ign http://archive.debian.org/debian/ oldstable/non-free Translation-en
Ign http://archive.debian.org oldstable Release
Hit http://ftp.debian.org squeeze-updates Release.gpg
Ign http://ftp.debian.org/debian/ squeeze-updates/contrib Translation-en
Ign http://ftp.debian.org/debian/ squeeze-updates/main Translation-en
Ign http://ftp.debian.org/debian/ squeeze-updates/non-free Translation-en
Ign http://archive.debian.org oldstable/main amd64 Packages
Hit http://ftp.debian.org squeeze-updates Release
Ign http://archive.debian.org oldstable/contrib amd64 Packages
Ign http://archive.debian.org oldstable/non-free amd64 Packages
Ign http://archive.debian.org oldstable/main amd64 Packages
Ign http://archive.debian.org oldstable/contrib amd64 Packages
Hit http://ftp.debian.org squeeze-updates/main amd64 Packages/DiffIndex
Hit http://security.debian.org squeeze/updates Release.gpg
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/non-free Translation-en
Ign http://archive.debian.org oldstable/non-free amd64 Packages
Hit http://ftp.debian.org squeeze-updates/contrib amd64 Packages
Hit http://ftp.debian.org squeeze-updates/non-free amd64 Packages
Err http://archive.debian.org oldstable/main amd64 Packages
404 Not Found [IP: 206.12.19.126 80]
Err http://archive.debian.org oldstable/contrib amd64 Packages
404 Not Found [IP: 206.12.19.126 80]
Err http://archive.debian.org oldstable/non-free amd64 Packages
404 Not Found [IP: 206.12.19.126 80]
Hit http://security.debian.org squeeze/updates Release
Hit http://security.debian.org squeeze/updates/main amd64 Packages
Hit http://security.debian.org squeeze/updates/contrib amd64 Packages
Hit http://security.debian.org squeeze/updates/non-free amd64 Packages
这是我的来源列表:
deb http://archive.debian.org/debian oldstable main contrib non-free
deb http://ftp.debian.org/debian/ squeeze-updates main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
此来源来自http://debgen.simplylinux.ch/
怎么了?
答案1
您需要更改oldstable
为lenny
。
如果你查看 http-repository,你会发现没有文件夹oldstable
。因此出现 404。
http://archive.debian.org/debian/dists/oldstable(404)
http://archive.debian.org/debian/dists/lenny(200)
如果你不知道为什么你的源列表(archive/oldstable)中有某些内容,我建议使用这个列表:
deb http://ftp.debian.org/debian/ squeeze main
#deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free
# Security Updates
deb http://security.debian.org/ squeeze/updates main contrib non-free
#deb-src http://security.debian.org/ squeeze/updates main contrib non-free
# squeeze-updates, previously known as 'volatile'
deb http://ftp.debian.org/debian/ squeeze-updates main
#deb-src http://ftp.debian.org/debian/ squeeze-updates main
# testing or sid
#deb http://ftp.debian.org/debian/ testing main
#deb http://ftp.debian.org/debian/ unstable main
# Dotdeb Archive
#deb http://packages.dotdeb.org squeeze all
#deb-src http://packages.dotdeb.org squeeze all