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

使用网易ubuntu镜像加速软件包安装

时间:2016-12-28 02:20:25      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:软件   update   nbsp   使用   deb   cte   log   lis   软件包   

用vi工具编辑文件

sudo vi /etc/apt/sources.list

以trusty(14.04)为例,插入下面内容到文件的最前面:

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

保存即可享受网易镜像加速。(电信线路飞快)

 

其他的版本,替换trusty为对应的名称即可:

lucid(10.04)
precise(12.04)
trusty(14.04)
utopic(14.10)
vivid(15.04)
wily(15.10)

 

参考地址:

http://mirrors.163.com/.help/ubuntu.html

使用网易ubuntu镜像加速软件包安装

标签:软件   update   nbsp   使用   deb   cte   log   lis   软件包   

原文地址:http://www.cnblogs.com/windchen/p/6228009.html

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