debian下修改镜像站的方法


 
apt原来用的镜像站比较慢,所以改用“http://mirrors.163.com”,速度不是盖的。
 
apt-get 的源记录文件为“/etc/apt/sources.list”,只要更改其中源地址就可以了,deb开头的是可执行文件的源,deb-src开头的是源代码源。
 
更改方式:

1、在“/etc/apt/sources.list”前加一下条目:
deb http://mirrors.163.com/debian squeeze main non-free contrib
deb http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian squeeze main non-free contrib
deb-src http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free

2、直接下载http://mirrors.163.com/.help/debian.html提供的文件
  www.2cto.com  
note: 改完后记得 apt-get update
具体可看:http://mirrors.163.com/.help/debian.html
 
 
 
作者 flxyKylin

相关内容

    暂无相关文章