ubuntu sources.list 修改
说明: 当我们在ubuntu上安装软件或包时,有时需要更改下载源
1. 首先备份源列表
首先备份源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
2.而后打开sources.list文件修改
sudo gedit /etc/apt/sources.list
3. 用下面阿里原(或其他的源)替换掉文件中所有的内容,保存编辑好的文件
###3.1 阿里源
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 res