Categories
學習筆記

Debian添加更新源

刚才重装了Debian大便系统却发现VPS商的Debian不能正常apt-get了,我都郁闷了。
想想应该是源的问题,上网查了一下资料,问题立马解决了,方法如下:
/etc/apt/sources.list中添加

deb http://http.us.debian.org/debian/ stable main

执行以下命令更新软件包列表:

apt-get update

然后执行以下命令安装 apt-spy:

apt-get install apt-spy

从源上下载一份源的镜像列表:

http://http.us.debian.org/debian/README.mirrors.txt

当然也可以搜索apt-spy安装包

apt-spy update

测试亚洲地区的源的速度,自动写入sources.list

apt-spy -d unstable -a asia -t 5

最后,sources.list中出现

deb ftp://ftp.debianclub.org/debian/ unstable main #contrib non-free
deb-src ftp://ftp.debianclub.org/debian/ unstable main #contrib non-free
#deb http://security.debian.org/ stable/updates main

One reply on “Debian添加更新源”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.