Apt-get一再失败。身份验证警告和404错误

时间:2016-04-04 11:38:49

标签: linux debian apt-get cifs

我有点超出我的深度,我需要一些建议。我尝试调整SMS网关以输出到网络位置。它在Voyage Linux上运行。

我试图安装cifs-utils软件包以访问Windows网络位置,但无处可去。事实上,所有apt-get命令似乎都返回错误。以下是我运行update时的示例:

root@foxbox:/# sudo apt-get update
Hit http://security.debian.org squeeze/updates Release.gpg
Ign http://security.debian.org/debian-security/ squeeze/updates/contrib Translation-en
Ign http://security.debian.org/debian-security/ squeeze/updates/contrib Translation-it
Ign http://security.debian.org/debian-security/ squeeze/updates/main Translation-en
Ign http://security.debian.org/debian-security/ squeeze/updates/main Translation-it
Ign http://security.debian.org/debian-security/ squeeze/updates/non-free Translation-en
Ign http://security.debian.org/debian-security/ squeeze/updates/non-free Translation-it
Hit http://security.debian.org squeeze/updates Release
Hit http://security.debian.org squeeze/updates/main i386 Packages
Hit http://security.debian.org squeeze/updates/contrib i386 Packages
Hit http://security.debian.org squeeze/updates/non-free i386 Packages
Ign http://ftp.jp.debian.org squeeze Release.gpg
Ign http://ftp.jp.debian.org/debian/ squeeze/contrib Translation-en
Ign http://ftp.jp.debian.org/debian/ squeeze/contrib Translation-it
Ign http://ftp.jp.debian.org/debian/ squeeze/main Translation-en
Ign http://ftp.jp.debian.org/debian/ squeeze/main Translation-it
Ign http://ftp.jp.debian.org/debian/ squeeze/non-free Translation-en
Ign http://ftp.jp.debian.org/debian/ squeeze/non-free Translation-it
Hit http://www.voyage.hk ./ Release.gpg
Ign http://ftp.jp.debian.org squeeze Release
Ign http://www.voyage.hk/dists/0.8/ ./ Translation-en
Ign http://www.voyage.hk/dists/0.8/ ./ Translation-it
Ign http://ftp.jp.debian.org squeeze/main i386 Packages
Ign http://ftp.jp.debian.org squeeze/contrib i386 Packages
Ign http://ftp.jp.debian.org squeeze/non-free i386 Packages
Hit http://www.voyage.hk ./ Release
Err http://ftp.jp.debian.org squeeze/main i386 Packages
404  Not Found
Err http://ftp.jp.debian.org squeeze/contrib i386 Packages
404  Not Found
Ign http://www.voyage.hk ./ Packages
Err http://ftp.jp.debian.org squeeze/non-free i386 Packages
404  Not Found
Hit http://www.voyage.hk ./ Packages
W: Failed to fetch http://ftp.jp.debian.org/debian/dists/squeeze/main/binary-i386/Packages.gz  404 Not Found    
W: Failed to fetch http://ftp.jp.debian.org/debian/dists/squeeze/contrib/binary-i386/Packages.gz  404  Not Found

W: Failed to fetch http://ftp.jp.debian.org/debian/dists/squeeze/non free/binary-i386/Packages.gz  404  Not Found

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

感谢任何/所有建议。我已经获得了这个项目,但是我不得不像往常一样学习Linux。我只有一个基本的理解。

1 个答案:

答案 0 :(得分:0)

您正在使用旧的debian,因此存储库不再存在。 您必须修复存储库文件,查找/etc/apt/sources.list

备份此文件:

cp -p /etc/apt/sources.list /root/sources.list

然后用适当的网址替换内容,包现在就在这里

http://archive.debian.org/debian/dists/Debian-6.0/