Ubuntu 更新源

我们常常遇到一个问题,Ubuntu更新源 中不包含自己所要配置的文件,或者缺少下载的软件

特别是配置实验环境的时候,最让人懊恼!尤其是刚刚接触Ubuntu的童鞋,所以Ubuntu配置更新源的时候,我们可以多放几个软件更新源(同时放多个更新源,并不会有问题)。

具体操作如下:

切换到 etc/apt 目录下,打开终端输入:

<em><strong>sudo gedit sources.list</strong></em>

更新源的文件修改为下列更新源,直接把全部复制粘帖进去,即可(具体舍取看个人需求)。

#aliyun
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

#tsinghua
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse

##Ubuntu官方提供的其他软件(第三方闭源软件等):      
deb http://archive.canonical.com/ubuntu/ trusty partner  
deb http://extras.ubuntu.com/ubuntu/ trusty main
  
##骨头兄亲自搭建并维护的 Ubuntu 源(该源位于浙江杭州百兆共享宽带的电信机房),包含 Deepin 等镜像:      
deb http://ubuntu.srt.cn/ubuntu/ trusty main restricted universe multiverse   
deb http://ubuntu.srt.cn/ubuntu/ trusty-security main restricted universe multiverse   
deb http://ubuntu.srt.cn/ubuntu/ trusty-updates main restricted universe multiverse   
deb http://ubuntu.srt.cn/ubuntu/ trusty-proposed main restricted universe multiverse      
deb http://ubuntu.srt.cn/ubuntu/ trusty-backports main restricted universe multiverse     
deb-src http://ubuntu.srt.cn/ubuntu/ trusty main restricted universe multiverse    
deb-src http://ubuntu.srt.cn/ubuntu/ trusty-security main restricted universe multiverse    
deb-src http://ubuntu.srt.cn/ubuntu/ trusty-updates main restricted universe multiverse     
deb-src http://ubuntu.srt.cn/ubuntu/ trusty-proposed main restricted universe multiverse      
deb-src http://ubuntu.srt.cn/ubuntu/ trusty-backports main restricted universe multiverse    
       
      
      
      
##网易163更新服务器(广东广州电信/联通千兆双线接入),包含其他开源镜像:      
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse     
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse      
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse    
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse     
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse     
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse    
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse   
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse      
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse     
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
      
       
   
      
##LupaWorld 更新服务器(浙江杭州电信/联通双线服务器),包含其他开源镜像:     
deb http://mirror.lupaworld.com/ubuntu trusty main restricted universe multiverse      
deb http://mirror.lupaworld.com/ubuntu trusty-security main restricted universe multiverse      
deb http://mirror.lupaworld.com/ubuntu trusty-updates main restricted universe multiverse    
deb http://mirror.lupaworld.com/ubuntu trusty-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu trusty-proposed main restricted universe multiverse 
deb-src http://mirror.lupaworld.com/ubuntu trusty main restricted universe multiverse     
deb-src http://mirror.lupaworld.com/ubuntu trusty-security main restricted universe multiverse  
deb-src http://mirror.lupaworld.com/ubuntu trusty-updates main restricted universe multiverse     
deb-src http://mirror.lupaworld.com/ubuntu trusty-backports main restricted universe multiverse    
deb-src http://mirror.lupaworld.com/ubuntu trusty-proposed main restricted universe multiverse
      
  
      
      
      
##常州贝特康姆软件技术有限公司 更新服务器(江苏常州电信服务器),包含其他开源镜像。  
    
##( CN99域名 系 “常州市亚科技术有限公司” 所注册,但此公司与常州贝特康姆的法人代表和营业地址相同。所以本镜像实际即原 CN99。但现在 CN99镜像的域名已改为跳转至网易镜像):  
deb http://centos.bitcomm.cn/ubuntu trusty main restricted universe multiverse
deb http://centos.bitcomm.cn/ubuntu trusty-security main restricted universe multiverse     
deb http://centos.bitcomm.cn/ubuntu trusty-updates main restricted universe multiverse      
deb http://centos.bitcomm.cn/ubuntu trusty-backports main restricted universe multiverse      
deb http://centos.bitcomm.cn/ubuntu trusty-proposed main restricted universe multiverse     
deb-src http://centos.bitcomm.cn/ubuntu trusty main restricted universe multiverse      
deb-src http://centos.bitcomm.cn/ubuntu trusty-security main restricted universe multiverse      
deb-src http://centos.bitcomm.cn/ubuntu trusty-updates main restricted universe multiverse      
deb-src http://centos.bitcomm.cn/ubuntu trusty-backports main restricted universe multiverse      
deb-src http://centos.bitcomm.cn/ubuntu trusty-proposed main restricted universe multiverse


##以下为有教育网接入的服务器(推荐教育网用户使用,部分非教育网用户也有可观的速度。教育网用户请优先使用IPv6地址。  
      
##中国科学技术大学更新服务器(位于合肥,千兆教育网接入,百兆电信/联通线路智能路由),由中科大Linux 用户协会和中科大学网络信息中心维护,包含其他开源镜像,Deepin 官方服##务器 实际亦指向此处:  
  
deb http://debian.ustc.edu.cn/ubuntu/ trusty main multiverse restricted universe      
deb http://debian.ustc.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe      
deb http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe      
deb http://debian.ustc.edu.cn/ubuntu/ trusty-security main multiverse restricted universe      
deb http://debian.ustc.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe      
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty main multiverse restricted universe      
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe      
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe     
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-security main multiverse restricted universe     
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe
      
##IPv6-Only 地址       
deb http://mirrors6.ustc.edu.cn/ubuntu/ trusty main multiverse restricted universe      
deb http://mirrors6.ustc.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe      
deb http://mirrors6.ustc.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe      
deb http://mirrors6.ustc.edu.cn/ubuntu/ trusty-security main multiverse restricted universe      
deb http://mirrors6.ustc.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe      
deb-src http://mirrors6.ustc.edu.cn/ubuntu/ trusty main multiverse restricted universe      
deb-src http://mirrors6.ustc.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe      
deb-src http://mirrors6.ustc.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe      
deb-src http://mirrors6.ustc.edu.cn/ubuntu/ trusty-security main multiverse restricted universe      
deb-src http://mirrors6.ustc.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe
  
      
##哈尔滨工业大学更新服务器,包含其他开源镜像:       
deb http://run.hit.edu.cn/ubuntu/ trusty main restricted universe multiverse      
deb http://run.hit.edu.cn/ubuntu/ trusty-security main restricted universe multiverse      
deb http://run.hit.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse      
deb http://run.hit.edu.cn/ubuntu/ trusty-backports       

      
       main restricted universe multiverse     
deb http://run.hit.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse      
deb-src http://run.hit.edu.cn/ubuntu/ trusty main restricted universe multiverse     
deb-src http://run.hit.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://run.hit.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse    
deb-src http://run.hit.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse    
deb-src http://run.hit.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse

     
##IPv6-Only地址       
deb http://run6.hit.edu.cn/ubuntu/ trusty main restricted universe multiverse     
deb http://run6.hit.edu.cn/ubuntu/ trusty-security main restricted universe multiverse    
deb http://run6.hit.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse     
deb http://run6.hit.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse    
deb http://run6.hit.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse    
deb-src http://run6.hit.edu.cn/ubuntu/ trusty main restricted universe multiverse    
deb-src http://run6.hit.edu.cn/ubuntu/ trusty-security main restricted universe multiverse     
deb-src http://run6.hit.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse      
deb-src http://run6.hit.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse      
deb-src http://run6.hit.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
      
       
      
#大连理工大学更新服务器,包含其他开源镜像:       
##( IPv4/v6 Both )        
deb http://mirror.dlut.edu.cn/ubuntu/ trusty main restricted universe multiverse     
deb http://mirror.dlut.edu.cn/ubuntu/ trusty-security main restricted universe multiverse     
deb http://mirror.dlut.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse      
deb http://mirror.dlut.edu.cn/ubuntu/ubuntu trusty-backports main restricted universe multiverse      
deb http://mirror.dlut.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse      
deb-src http://mirror.dlut.edu.cn/ubuntu/ trusty main restricted universe multiverse      
deb-src http://mirror.dlut.edu.cn/ubuntu/ trusty-security main restricted universe multiverse      
deb-src http://mirror.dlut.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse      
deb-src http://mirror.dlut.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse     
deb-src http://mirror.dlut.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
      
       
      
##上海交通大学更新服务器(教育网千兆接入,联通/电信线路情况不详),包含其他开源镜像:       
deb http://ftp.sjtu.edu.cn/ubuntu/ trusty main multiverse restricted universe     
deb http://ftp.sjtu.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe     
deb http://ftp.sjtu.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe     
deb http://tw.archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse      
deb http://ftp.sjtu.edu.cn/ubuntu/ trusty-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe      
deb-src http://ftp.sjtu.edu.cn/ubuntu/ trusty main multiverse restricted universe      
deb-src http://ftp.sjtu.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe      
deb-src http://ftp.sjtu.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe      
deb-src http://ftp.sjtu.edu.cn/ubuntu/ trusty-security main multiverse restricted universe      
deb-src http://ftp.sjtu.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe
      


##IPv6-Only 地址        
deb http://ftp6.sjtu.edu.cn/ubuntu/ trusty main multiverse restricted universe      
deb http://ftp6.sjtu.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe      
deb http://ftp6.sjtu.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe      
deb http://ftp6.sjtu.edu.cn/ubuntu/ trusty-security main multiverse restricted universe      
deb http://ftp6.sjtu.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe      
deb-src http://ftp6.sjtu.edu.cn/ubuntu/ trusty main multiverse restricted universe     
deb-src http://ftp6.sjtu.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe      
deb-src http://ftp6.sjtu.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe      
deb-src http://ftp6.sjtu.edu.cn/ubuntu/ trusty-security main multiverse restricted universe     
deb-src http://ftp6.sjtu.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe
      
       
      


      
      
##兰州大学更新服务器,由兰大开源社区维护,包含其他开源镜像:  
 
deb http://mirror.lzu.edu.cn/ubuntu/ trusty main multiverse restricted universe   
deb http://mirror.lzu.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe   
deb http://mirror.lzu.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe   
deb http://mirror.lzu.edu.cn/ubuntu/ trusty-security main multiverse restricted universe
deb http://mirror.lzu.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe  
deb-src http://mirror.lzu.edu.cn/ubuntu/ trusty main multiverse restricted universe   
deb-src http://mirror.lzu.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe   
deb-src http://mirror.lzu.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe   
deb-src http://mirror.lzu.edu.cn/ubuntu/ trusty-security main multiverse restricted universe 
deb-src http://mirror.lzu.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe
      
       
      
##以下为大陆地区外的源  
     
##香港中文大学更新服务器,由香港中文大学资讯科技服务处维护,包含其他开源镜像:   
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty main restricted universe multiverse   
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-security main restricted universe multiverse  
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-updates main restricted universe multiverse   
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-backports main restricted universe multiverse   
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-proposed main restricted universe multiverse    
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty main restricted universe multiverse    
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-security main restricted universe multiverse     
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-updates main restricted universe multiverse      
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-backports main restricted universe multiverse      
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-proposed main restricted universe
    

保存后,终端输入:

<em><strong>sudo apt-get update</strong></em>

sources.list 中源过多,此过程会较慢。等待结束即可

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值