前言
Ubuntu自帶的軟件源是國外的服務(wù)器墅拭,下載速度很慢申眼,在國內(nèi)使用大都需要更換軟件源。
桌面版
桌面版的源更換很簡單潮饱,在設(shè)置里就能找到来氧,換了會自己更新。
終端
在一些情況下Ubuntu是沒有桌面的饼齿,只有個終端饲漾,比如在服務(wù)器上,在Windows的子系統(tǒng)中缕溉。
我更換的是阿里云的
- sudo vim /etc/apt/sources.list
- 刪除所有文件并粘貼一下內(nèi)容考传。
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