我只是想知道你的sources.list是怎样的。我有一些存储库女巫给出了一些错误,我想清理它。
当我做apt-get update时,我得到几行显示像404这样的错误,这就是我的列表的样子:
# deb cdrom:[Debian GNU/Linux 6.0.2.1 _Squeeze_ - Official i386 NETINST Binary-1 20110628-13:01]/ squeeze main
# deb cdrom:[Debian GNU/Linux 6.0.2.1 _Squeeze_ - Official i386 NETINST Binary-1 20110628-13:01]/ squeeze main
deb http://http.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://http.us.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main
deb-src http://http.us.debian.org/debian/ squeeze/updates main contrib non-free
# squeeze-updates, previously known as 'volatile'
deb http://ftp.ba.debian.org/debian/ squeeze-updates main
deb-src http://ftp.ba.debian.org/debian/ squeeze-updates main
#non free and contrib
deb http://http.us.debian.org/debian squeeze main contrib non-free
deb http://http.us.debian.org/debian/ squeeze/updates main contrib non-free
deb http://download.skype.com/linux/repos/debian stable non-free
deb http://http.us.debian.org/debian/ squeeze-proposed-updates contrib non-free main
deb-src http://http.us.debian.org/debian/ squeeze-proposed-updates contrib non-free main
#wine
deb http://wine.sourceforge.net/apt/ binary/
apt-get update后的错误:
Err [url = http://http.us.debian.org] / [/ url]的索引 squeeze / updates / main Sources 404 Not Found [IP:128.30.2.36 80] Err [url = http://http.us.debian.org] / [/ url]的索引 squeeze / updates / contrib Sources 404 Not Found [IP:128.30.2.36 80] Err [url = http://http.us.debian.org] / [/ url]的索引 挤压/更新/非自由源404未找到[IP:128.30.2.36 80] Err [url = http://http.us.debian.org] / [/ url]的索引 squeeze / updates / main i386软件包404未找到[IP:128.30.2.36 80] Err [url = http://http.us.debian.org]索引/ [/ url] squeeze / updates / contrib i386软件包404找不到[IP: 128.30.2.36 80] Err [url = http://http.us.debian.org] / / [/ url]压缩/更新/非免费i386软件包404未找到的索引[IP: 128.30.2.36 80] 26秒内获得2,759 B(102 B / s)N:忽略目录'/etc/apt/sources.list.d/'中的文件'dropbox.list.save' 文件扩展名无效N:忽略文件 目录'/etc/apt/sources.list.d/'中的'lenny.non-free.list.save'为 它的文件扩展名无效N:忽略文件 目录'/etc/apt/sources.list.d/'中的'opera.list.save',因为它有一个 文件扩展名无效N:忽略文件'google-chrome.list.save' 在目录'/etc/apt/sources.list.d/'中,因为它的文件名无效 扩展名W:无法获取 [URL] http://http.us.debian.org/debian/dists/squeeze/updates/main/source/Sources.gz [/ URL] 404未找到[IP:128.30.2.36 80]
W:无法获取 [URL] http://http.us.debian.org/debian/dists/squeeze/updates/contrib/source/Sources.gz [/ URL] 404未找到[IP:128.30.2.36 80]
W:无法获取 [URL] http://http.us.debian.org/debian/dists/squeeze/updates/non-free/source/Sources.gz [/ URL] 404未找到[IP:128.30.2.36 80]
W:无法获取 [URL] http://http.us.debian.org/debian/dists/squeeze/updates/main/binary-i386/Packages.gz [/ URL] 404未找到[IP:128.30.2.36 80]
W:无法获取 [URL] http://http.us.debian.org/debian/dists/squeeze/updates/contrib/binary-i386/Packages.gz [/ URL] 404未找到[IP:128.30.2.36 80]
W:无法获取 [URL] http://http.us.debian.org/debian/dists/squeeze/updates/non-free/binary-i386/Packages.gz [/ URL] 404未找到[IP:128.30.2.36 80]
E:某些索引文件无法下载,已被忽略或旧 而是使用的。
因此,如果您有一些建议如何解决这些错误(或向我展示您的存储库列表),我将非常感激;)干杯;
答案 0 :(得分:4)
您可以通过注释掉所有重新分析者来排除错误,除非在sources.list中有以下内容。
deb http://ftp.us.debian.org/debian stable main
deb http://ftp.de.debian.org/debian squeeze main non-free
deb http://security.debian.org/ squeeze/updates main contrib