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

2021-10-04 18:52:40 字數 1845 閱讀 3692

清華大學源

# 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 multiverse

阿里雲源(親測可用)

# 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

修改命令 sudo vim /etc/apt/sources.list

改完記得更新一下 sudo apt-get update

不過需要注意的是確認你ubuntu的版本號,更新的源中的版本號最好與ubuntu的版本號一樣,ubuntu16.04的版本號是 

可以看出以上源中對應的版本號正好是xenial 

Ubuntu 16 04 幾個國內更新源

如何更改源 1 在修改sources.list前,最好先備份乙份 執行備份命令 sudo cp etc apt sources.list etc apt sources.list.old 2 執行命令開啟sources.list檔案 sudo vim etc apt sources.list 3 複...

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 開啟檔案,替換成阿里雲檔案 複製下面 替換原本的內容 複製下面 替...