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

Ubuntu16.04 配置 国内更新源

时间:2017-03-08 16:37:45      阅读:784      评论:0      收藏:0      [点我收藏+]

标签:ubuntu 16.04 国内更新源 ali 清华

Ubuntu 配置 国内更新源
之所以要换成国内的 就是因为国外的源太慢了
视频链接地址:http://v.youku.com/v_show/id_XMjYxMjI5MDk2OA==.html


1.百度搜索 “ubuntu 16.04 更新国内源”

2.编辑 /etc/apt/sources.list

  #sudo  vim /etc/apt/sources.list
 
  我们来清空内容:
  shift + : 1,$ d
  再按i 进行编辑
  复制我们刚才找的源内容 然后粘贴

##阿里云

deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源码
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# Canonical 合作伙伴和附加
deb http://archive.canonical.com/ubuntu/ xenial partner
deb http://extras.ubuntu.com/ubuntu/ xenial main

 

###清华大学

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main restricted universe multiverse

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

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

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

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main restricted universe multiverse

deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main restricted universe multiverse

deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse

deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse

deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse

  如果提示没有vim  那么先执行 sudo apt install vim

  按一下ESC,  然后shift + : 输入wq 保存退出

3.更新缓存资源索引  
  sudo apt update
  看到已经换成阿里的了,等待更新完成
 


本文出自 “净空蓝星” 博客,请务必保留此出处http://jingkonglanxing.blog.51cto.com/1152128/1904286

Ubuntu16.04 配置 国内更新源

标签:ubuntu 16.04 国内更新源 ali 清华

原文地址:http://jingkonglanxing.blog.51cto.com/1152128/1904286

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