Debian7和8的可用源,解决apt-get update的404错误

2019年3月21日后 Debian 默认源失效了,导致更新和安装软件失败.

Debian7解决方法:

cp -r /etc/apt/sources.list /etc/apt/sources.list.bak;
echo "deb http://archive.debian.org/debian/ wheezy main contrib non-free" > /etc/apt/sources.list;
apt-get update;

Debian8解决方法:

cp -r /etc/apt/sources.list /etc/apt/sources.list.bak;
echo "deb http://archive.debian.org/debian/ jessie main contrib non-free" > /etc/apt/sources.list;
apt-get update;

其实就是把源修改为: http://archive.debian.org/debian/

发现的几个其他可用源,如果http://archive.debian.org/debian/太慢可以自己换换

debian官方的存档
https://snapshot.debian.org/archive/debian/20190321T212815Z/

这里可以找到不少(其实只要点进去看看dists目录里有没有wheezy就知道了)
https://www.debian.org/distrib/archive

标签: Debian7, Debian8

添加新评论