ubuntu16.04更换阿里云软件源
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu16.04更换阿里云软件源相关的知识,希望对你有一定的参考价值。
ubuntu使用官方的apt-get来安装软件,官方源的速度过慢。
但是使用阿里云的源就不一样了,也不会存在很多问题,下面为笔者总结一下怎么更换ubuntu的软件源。
一,备份
#cd /etc/apt/
#sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
二,修改
#sudo vim /etc/sources.list
将sources.list中全部替换为如下内容
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
三,更新
#sudo apt-get update
以上是关于ubuntu16.04更换阿里云软件源的主要内容,如果未能解决你的问题,请参考以下文章