ubuntu如何使用推荐的源

标签: ubuntu源设置

■ 首先备份源列表:

 
   

sodo cp /etc/apt/sources.list /etc/apt/sources.list_bak

 
■ 编辑source.list,从ubuntu发布的源列表中选择合适的源替换掉文件中的所有内容,保存文件。
         具体的源列表可以在这里查找 http://wiki.ubuntu.org.cn/%E6%BA%90%E5%88%97%E8%A1%A8中找到。
         下面是网易的更新服务器地址:
 
   
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

         建议在添加前手动验证以下源的连接速度(ping下就行),选择最快的源可以节省大批下载时间。
 
   

ping mirrors.163.com

       ★注意一定要选对版本
 
   

Utopic(14.10)版本
Trusty(14.04)版本
Precise(12.04)版本
Lucid(10.04) 版本


■ 刷新列表:
 
   

sudo apt-get update

      ★注意一定执行刷新


你可能感兴趣的:(Ubuntu)