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

ubuntu修改源

时间:2015-03-06 17:17:36      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:ubuntu   修改软件源   

#备份当前源

cd /etc/apt/

sudo cp sources.list sources.list.bak


#修改为ali的源

/etc/apt$ cat sources.list

deb http://mirrors.aliyun.com/ubuntu/ utopic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ utopic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ utopic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ utopic-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ utopic-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ utopic main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ utopic-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ utopic-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ utopic-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ utopic-backports main restricted universe multiverse


#更新

sudo apt-get update


ubuntu修改源

标签:ubuntu   修改软件源   

原文地址:http://cheney1228.blog.51cto.com/5795014/1617947

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