关于Debian源

 感觉linux 真的不适合图形界面,又大又臃肿。 但是命令行的话就真的相当不错。 有源的linux 真的不错。 方便,一切都显得那么简单 

Debian 源 。

 
        国内比较好用的debian源还是debian.cn99.com,但是不知道什么原因这个国内最快的源挂了,现在设置debian就比较麻烦了。还好有了apt-spy,可以自动测试到哪个源的下载速度最快。
       当然,刚装完系统是没有apt-spy的,但是我们可以找个暂时先替代的。譬如:
在/etc/apt/sources.list 中添加
deb deb http://debian.ustc.edu.cn/debian/ sid main non-free contrib
执行以下命令更新软件包列表:
apt-get update
然后执行以下命令安装 apt-spy:
apt-get install apt-spy
从源上下载一份源的镜像列表:[url]http://http.us.debian.org/debian/README.mirrors.txt[/url]
apt-spy update
测试亚洲地区的源的速度,自动写入sources.list
apt-spy -d unstable -a asia -t 5
最后,sources.list中出现
deb [url]ftp://ftp.debianclub.org/debian/[/url] unstable main #contrib non-free
deb-src [url]ftp://ftp.debianclub.org/debian/[/url] unstable main #contrib non-free
#deb [url]http://security.debian.org/[/url] stable/updates main
---------------
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章