Ubuntu16.04 配置 国内更新源

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu16.04 配置 国内更新源相关的知识,希望对你有一定的参考价值。

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 几个国内更新源

Ubuntu 16.04 换国内源

Ubuntu 16.04 几个国内更新源

Ubuntu 16.04 几个国内更新源

Ubuntu16.04更换国内源

Ubuntu16.04更换国内源