码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu16.04更新源(加速下载)

时间:2019-11-20 19:44:37      阅读:87      评论:0      收藏:0      [点我收藏+]

标签:uri   mirror   aliyun   vim   partner   替换   rest   加速   备份   

一.备份原来ubuntu的下载源文件

1 cd /etc/apt
2 ls
3 cp sources.list sources.list .bak
4 gedit sources.list 
5 vim sources.list 

二.替换阿里云源

 1 deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  
 2 deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse  
 3 deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse  
 4 deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse  
 5 ##测试版源  
 6 deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse  
 7 # 源码  
 8 deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  
 9 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse  
10 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse  
11 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse  
12 ##测试版源  
13 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse  
14 # Canonical 合作伙伴和附加  
15 deb http://archive.canonical.com/ubuntu/ xenial partner  
16 deb http://extras.ubuntu.com/ubuntu/ xenial main 

三.更新源和软件

1 sudo apt-get update 更新源  
2 sudo apt-get upgrade 更新软件 

 

Ubuntu16.04更新源(加速下载)

标签:uri   mirror   aliyun   vim   partner   替换   rest   加速   备份   

原文地址:https://www.cnblogs.com/Alexephor/p/11855199.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!