国内比较好用的debian源还是debian.cn99.com,但是不知道什么原因这个国内最快的源挂了,现在设置debian就比较 麻烦了。还好有了apt-spy,可以自动测试到哪个源的下载速度最快。
当然,刚装完系统是没有apt-spy的,但是我们可以找个暂时先替代的。譬如:在/etc/apt/sources.list 中添加deb http://http.us./debian/ stable main执行以下命令更新软件包列表:apt-get update然后执行以下命令安装 apt-spy:apt-get install apt-spy从源上下载一份源的镜像列表:http://http.us./debian/README.mirrors.txt 当然也可以www.google.cn搜索apt-spy安装包 apt-spy update测试亚洲地区的源的速度,自动写入sources.listapt-spy -d unstable -a asia -t 5最后,sources.list中出现deb ftp://ftp.debianclub.org/debian/ unstable main #contrib non-freedeb-src ftp://ftp.debianclub.org/debian/ unstable main #contrib non-free
#deb http://security./ stable/updates main