Ubuntu16.04 配置 国内更新源

前端之家收集整理的这篇文章主要介绍了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 multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiversedeb 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 multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiversedeb-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 partnerdeb http://extras.ubuntu.com/ubuntu/ xenial main###清华大学deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main restricted universe multiversedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main restricted universe multiversedeb-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 看到已经换成阿里的了,等待更新完成

猜你在找的Ubuntu相关文章