分享Ubuntu 16.04 幾個(gè)國內(nèi)更新源,。
如何更改源
1/ 在修改source.list前,最好先備份一份
執(zhí)行備份命令
sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
2/ 執(zhí)行命令打開source.list文件:
可以用vim,,gedit,atom等工具打開
sudo vim /etc/apt/source.list
或
sudo gedit /etc/apt/source.list
或(你得自己安裝atom,,我覺得挺好的一個(gè)工具)
sudo atom /etc/apt/source.list
3/復(fù)制源
把下面的任意一下復(fù)制到source.list中去,并覆蓋原來的文件內(nèi)容,。
東北大學(xué)源
deb-src http://mirror./ubuntu/ xenial main restricted #Added by software-properties
deb http://mirror./ubuntu/ xenial main restricted
deb-src http://mirror./ubuntu/ xenial restricted multiverse universe #Added by software-properties
deb http://mirror./ubuntu/ xenial-updates main restricted
deb-src http://mirror./ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirror./ubuntu/ xenial universe
deb http://mirror./ubuntu/ xenial-updates universe
deb http://mirror./ubuntu/ xenial multiverse
deb http://mirror./ubuntu/ xenial-updates multiverse
deb http://mirror./ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirror./ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive./ubuntu xenial partner
deb-src http://archive./ubuntu xenial partner
deb http://mirror./ubuntu/ xenial-security main restricted
deb-src http://mirror./ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirror./ubuntu/ xenial-security universe
deb http://mirror./ubuntu/ xenial-security multiverse
清華大學(xué)
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb http://mirrors.tuna./ubuntu/ xenial main restricted
deb http://mirrors.tuna./ubuntu/ xenial-updates main restricted
deb http://mirrors.tuna./ubuntu/ xenial universe
deb http://mirrors.tuna./ubuntu/ xenial-updates universe
deb http://mirrors.tuna./ubuntu/ xenial multiverse
deb http://mirrors.tuna./ubuntu/ xenial-updates multiverse
deb http://mirrors.tuna./ubuntu/ xenial-backports main restricted universe multiverse
deb http://mirrors.tuna./ubuntu/ xenial-security main restricted
deb http://mirrors.tuna./ubuntu/ xenial-security universe
deb http://mirrors.tuna./ubuntu/ xenial-security multiverse
阿里云源
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive./ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive./ubuntu xenial partner
deb-src http://archive./ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
4/update命令
sudo apt-get update
更多Ubuntu相關(guān)信息見Ubuntu 專題頁面 http://www./topicnews.aspx?tid=2
本文永久更新鏈接地址:http://www./Linux/2017-01/139458.htm
|