标签:uri mirror aliyun vim partner 替换 rest 加速 备份
一.备份原来ubuntu的下载源文件
1 cd /etc/apt 2 ls 3 cp sources.list sources.list .bak 4 gedit sources.list 5 vim sources.list
二.替换阿里云源
1 deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse 2 deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse 3 deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse 4 deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse 5 ##测试版源 6 deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse 7 # 源码 8 deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse 9 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse 10 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse 11 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse 12 ##测试版源 13 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse 14 # Canonical 合作伙伴和附加 15 deb http://archive.canonical.com/ubuntu/ xenial partner 16 deb http://extras.ubuntu.com/ubuntu/ xenial main
三.更新源和软件
1 sudo apt-get update 更新源 2 sudo apt-get upgrade 更新软件
标签:uri mirror aliyun vim partner 替换 rest 加速 备份
原文地址:https://www.cnblogs.com/Alexephor/p/11855199.html