红联Linux门户
Linux帮助

更换Ubuntu的sources源

发布时间:2015-12-14 10:36:26来源:linux网站作者:聂鲁达

163对Ubuntu的sources进行了镜像,对于amd-64位系统,其它版本应该也可以使用。

vim /etc/apt/sources.list   insert    将其它的用#注释起来,将如下的添加进去:


#add by neruda 2015-12-13, added 163 source
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse


然后 esc,输入shirt+:  然后 wq

执行命令 apt-get update 就能看到系统在更换软件源。


linux命令行下更换软件源:http://www.linuxdiyf.com/linux/15685.html