现在的位置: 首页 > 综合 > 正文

debian修改源的方法

2013年08月18日 ⁄ 综合 ⁄ 共 494字 ⁄ 字号 评论关闭

网易开源镜像站地址:http://debian.cn99.com/

以lenny为例:

打开地址进入dists,找到需要的源镜像

debian系统中vim /etc/apt/source.list

将以前的deb开头的都去掉,加入下面内容:

deb http://debian.cn99.com/debian lenny main
deb http://debian.cn99.com/debian lenny-proposed-updates main
deb-src http://debian.cn99.com/debian lenny main
deb-src http://debian.cn99.com/debian lenny-proposed-updates main

这里需要注意的是虽然进入到了dists,但只许写到debian即可,source.list里边设置格式即为:

deb http://debian.cn99.com/debian+版本+内容

deb http://debian.cn99.com/debian+版本+内容

这破问题纠结了半天,之前由于不熟悉而未注释掉source.list 原有内容,搞的好郁闷

抱歉!评论已关闭.