更改Ubuntu的apt源

2021-08-20 06:43:01 字數 2201 閱讀 6898

嗯,這是一篇應求而生的博文,好像有段時間沒來更博了,因為在忙科研。

好好忙科研還是很充實的。

你知道嗎,我發現如今科研不僅要你會matlab、python、c、c++,會演算法,會統計資料會畫圖會做ppt會報告會話術會word,還要會excel會ps會premiere。

其實也蠻有趣的。

apt源就是乙個檔案(linux下一切都是檔案),位置是\etc\apt\sources.list,開啟就可以看到你本機的apt源。

一般在沒有更換apt源的時候(此時官方軟體源archive.canonical.com的伺服器在國外),所以你要用sudo apt install安裝軟體,或者甚至是sudo apt update速度都會很慢,甚至可能由於實在速度過慢,系統認為你沒有網路連線而直接導致操作失敗。

deb  xenial main restricted universe multiverse

deb xenial-security main restricted universe multiverse

deb xenial-updates main restricted universe multiverse

deb xenial-backports main restricted universe multiverse

##測試版源

deb xenial-proposed main restricted universe multiverse

## 原始碼

deb-src xenial main restricted universe multiverse

deb-src xenial-security main restricted universe multiverse

deb-src xenial-updates main restricted universe multiverse

deb-src xenial-backports main restricted universe multiverse

##測試版源

deb-src xenial-proposed main restricted universe multiverse

deb 

.edu

.cn/mirrors/ubuntu/ xenial main multiverse restricted universe

deb

.edu

.cn/mirrors/ubuntu/ xenial-backports main multiverse restricted universe

deb

.edu

.cn/mirrors/ubuntu/ xenial-proposed main multiverse restricted universe

deb

.edu

.cn/mirrors/ubuntu/ xenial-security main multiverse restricted universe

deb

.edu

.cn/mirrors/ubuntu/ xenial-updates main multiverse restricted universe

deb-src

.edu

.cn/mirrors/ubuntu/ xenial main multiverse restricted universe

deb-src

.edu

.cn/mirrors/ubuntu/ xenial-backports main multiverse restricted universe

deb-src

.edu

.cn/mirrors/ubuntu/ xenial-proposed main multiverse restricted universe

deb-src

.edu

.cn/mirrors/ubuntu/ xenial-security main multiverse restricted universe

deb-src

.edu

.cn/mirrors/ubuntu/ xenial-updates main multiverse restricted universe

更改ARM Ubuntu系統的apt源

清華映象 點進去 是這個 把裡面的全換成sudo vim etc apt sources.list把裡面內容全刪了,或者注釋掉,換成下面這一坨 deb focal main restricted universe multiverse deb src focal main restricted un...

ubuntu更改映象源

修改apt源 vim etc apt sources.list然後修改為下面的內容,金山雲 deb xenial main restricted deb xenial updates main restricted deb xenial universe deb xenial updates uni...

ubuntu建立多版本apt源

環境 使用一台 ubuntu 16.04作為 伺服器1 建立檔案 mkdir data mkdir data 16.04 mkdir data 16.04 mirror mkdir data 16.04 var mkdir data 16.04 skel mkdir data 14.04 mkdir...