Ubuntu 14.04 更换阿里云源

Posted 朱小勇

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu 14.04 更换阿里云源相关的知识,希望对你有一定的参考价值。

 

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份

sudo vim /etc/apt/sources.list #修改
sudo apt-get update #更新列表
 
阿里源,将默认的源全部删除掉
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
 
 
 
 
 

以上是关于Ubuntu 14.04 更换阿里云源的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu16.04更换镜像源为阿里云镜像源

阿里云 Ubuntu14.04 升级 python3.4 到 python 3.5/6

在阿里云Ubuntu 14.04 Linux服务器上安装docker

阿里云 Ubuntu14.04 部署 LAMP

图解阿里云Ubuntu14.04环境下java web运行环境搭建

ubuntu14.04 apt-get install找不到软件,更换源解决