修改Ubuntu的aptget源為阿里源的方法
1、復制原文件備份 sudo cp /etc/apt/source.list /etc/apt/source.list.bak
2尉辑、編輯源列表文件
sudo vim /etc/apt/source.list
3、將原來的列表刪除仁烹,添加如下內(nèi)容
deb?http://mirrors.aliyun.com/ubuntu/?vivid main restricted universe multiverse deb?http://mirrors.aliyun.com/ubuntu/?vivid-security main restricted universe multiverse deb?http://mirrors.aliyun.com/ubuntu/?vivid-updates main restricted universe multiverse deb?http://mirrors.aliyun.com/ubuntu/?vivid-proposed main restricted universe multiverse deb?http://mirrors.aliyun.com/ubuntu/?vivid-backports main restricted universe multiverse deb-srchttp://mirrors.aliyun.com/ubuntu/?vivid main restricted universe multiverse deb-src?http://mirrors.aliyun.com/ubuntu/?vivid-security main restricted universe multiverse deb-src?http://mirrors.aliyun.com/ubuntu/?vivid-updates main restricted universe multiverse deb-src?http://mirrors.aliyun.com/ubuntu/?vivid-proposed main restricted universe multiverse deb-src?http://mirrors.aliyun.com/ubuntu/?vivid-backports main restricted universe multiverse
4鹃彻、運行sudo apt-get update
5茶没、運行sudo apt-get upgrade