Ubuntu 16 04 幾個國內更新源

2021-08-03 13:52:14 字數 2932 閱讀 1520

如何更改源

1、在修改sources.list前,最好先備份乙份

執行備份命令

sudo cp /etc/apt/sources.list /etc/apt/sources.list.old

2、執行命令開啟sources.list檔案

sudo vim /etc/apt/sources.list

3、複製源

把下面的任意一下複製到sources.list中去,並覆蓋原來的檔案內容。

阿里雲源

# deb cdrom:[ubuntu 16.04 lts _xenial xerus_ - release amd64 (20160420.1)]/ xenial main restricted

deb-src xenial main restricted #added by software-properties

deb xenial main restricted

deb-src xenial main restricted multiverse universe #added by software-properties

deb xenial-updates main restricted

deb-src xenial-updates main restricted multiverse universe #added by software-properties

deb xenial universe

deb xenial-updates universe

deb xenial multiverse

deb xenial-updates multiverse

deb xenial-backports main restricted universe multiverse

deb-src xenial-backports main restricted universe multiverse #added by software-properties

deb xenial partner

deb-src xenial partner

deb xenial-security main restricted

deb-src xenial-security main restricted multiverse universe #added by software-properties

deb xenial-security universe

deb xenial-security multiverse

清華大學

# deb cdrom:[ubuntu 16.04 lts _xenial xerus_ - release amd64 (20160420.1)]/ xenial main restricted

deb xenial main restricted

deb xenial-updates main restricted

deb xenial universe

deb xenial-updates universe

deb xenial multiverse

deb xenial-updates multiverse

deb xenial-backports main restricted universe multiverse

deb xenial-security main restricted

deb xenial-security universe

deb xenial-security multivers

東北大學

deb-src  xenial main restricted #added by software-properties

deb xenial main restricted

deb-src xenial restricted multiverse universe #added by software-properties

deb xenial-updates main restricted

deb-src xenial-updates main restricted multiverse universe #added by software-properties

deb xenial universe

deb xenial-updates universe

deb xenial multiverse

deb xenial-updates multiverse

deb xenial-backports main restricted universe multiverse

deb-src xenial-backports main restricted universe multiverse #added by software-properties

deb xenial partner

deb-src xenial partner

deb xenial-security main restricted

deb-src xenial-security main restricted multiverse universe #added by software-properties

deb xenial-security universe

deb xenial-security multiverse

4、更新命令

sudo apt-get update

Ubuntu16 04 幾個國內更新源以及注意點

清華大學源 deb cdrom ubuntu 16.04 lts xenial xerus release amd64 20160420.1 xenial main restricted deb xenial main restricted deb xenial updates main restr...

Ubuntu 16 04 國內更新源

東北大學 cn ubuntu xenial security multiverse清華大學 deb cdrom ubuntu 16.04 lts xenial xerus release amd64 20160420.1 xenial main restricted deb tsinghua edu...

Ubuntu 16 04 配置國內源

修改ubuntu 16.04 源 sudo i cd etc apt cp sources.list sources.list.bak 把之前的 sources.list 檔案存個副本 sudo gedit sources.list 開啟檔案,替換成阿里雲檔案 複製下面 替換原本的內容 複製下面 替...