42
Debian修改APT软件源

 

Linux拥有众多的发行版,每个发行版都有提供镜像,但是,有些镜像的下载速度参差不齐,偶尔会有更新失败的情况。

1、备份原配置文件:

# cp /etc/apt/sources.list /etc/apt/sources.list.backup

2、修改软件源配置文件

debian 7.x (wheezy)

编辑/etc/apt/sources.list文件, 将内容修改为:

deb http://mirrors.niaoyun.com/debian/ wheezy main non-free contribdeb 
http://mirrors.niaoyun.com/debian/ wheezy-proposed-updates main non-free contribdeb-src 
http://mirrors.niaoyun.com/debian/ wheezy main non-free contribdeb-src 
http://mirrors.niaoyun.com/debian/ wheezy-proposed-updates main non-free contrib

debian 8.x (jessie) 编辑/etc/apt/sources.list文件, 将内容修改为:

deb http://mirrors.niaoyun.com/debian/ jessie main non-free contribdeb 
http://mirrors.niaoyun.com/debian/ jessie-proposed-updates main non-free contribdeb-src 
http://mirrors.niaoyun.com/debian/ jessie main non-free contribdeb-src 
http://mirrors.niaoyun.com/debian/ jessie-proposed-updates main non-free contrib

3、更新

# apt-get update


这条帮助是否解决了您的问题? 已解决 未解决

提交成功!非常感谢您的反馈,我们会继续努力做到更好! 很抱歉未能解决您的疑问。我们已收到您的反馈意见,同时会及时作出反馈处理!