Ubuntu, 更新Sourses.list
1.备份原文件
1 sudo cp /etc/apt/sources.list /etc/apt/sources_list.bak
2.加载文件
vim:vim sourses.list
ubuntu desktop :sudo gedit /etc/apt/sources.list
3.更改原文件并保存
阿里云源
1 deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse 2 3 deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse 4 5 deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse 6 7 deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse 8 9 deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse 10 11 deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse 12 13 deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse 14 15 deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse 16 17 deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse 18 19 deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
4.刷新列表
1 sudo apt-get update
2 sudo apt-get upgrade
5.完成操作完成,如果出现依赖
sudo apt-get install aptitude
sudo aptitude install xxxx