UbuntuServer添加软件源列表

frome:http://www.cnblogs.com/Chierush/p/3155022.html

要使用Ubuntu前,我们一般都要先做好工具!特别是对于安装这一块~~~~

1、配置前,先做个配置文件的备份:

$sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak


2、然后就可以添加新的源了


$sudo vim /etc/apt/sources.list


加入源地址【下面列出163的源,主要是速度与更新得快!!!推荐使用】

deb http://mirrors.163.com/ubuntu/ maverick main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/maverick-backports main restricted universe multiverse


  PS:注释掉其他行(行首加上#),也可不操作

  3、最后,更新你的软件列表
$ sudo apt-get update – 列举本地更新

你可能感兴趣的:(收藏)