sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo gedit /etc/apt/sources.list
把下列任 一 一 個複製進去就行,檔案原來的內容刪不刪都行。
#阿里源
deb focal main restricted universe multiverse
deb focal-security main restricted universe multiverse
deb focal-updates main restricted universe multiverse
deb focal-proposed main restricted universe multiverse
deb focal-backports main restricted universe multiverse
deb-src focal main restricted universe multiverse
deb-src focal-security main restricted universe multiverse
deb-src focal-updates main restricted universe multiverse
deb-src focal-proposed main restricted universe multiverse
deb-src focal-backports main restricted universe multiverse
#清華源
# 預設注釋了原始碼映象以提高 apt update 速度,如有需要可自行取消注釋
deb focal main restricted universe multiverse
# deb-src focal main restricted universe multiverse
deb focal-updates main restricted universe multiverse
# deb-src focal-updates main restricted universe multiverse
deb focal-backports main restricted universe multiverse
# deb-src focal-backports main restricted universe multiverse
deb focal-security main restricted universe multiverse
# deb-src focal-security main restricted universe multiverse
# 預發布軟體源,不建議啟用
# deb focal-proposed main restricted universe multiverse
# deb-src focal-proposed main restricted universe multiverse
#網易源
deb focal main restricted universe multiverse
deb focal-security main restricted universe multiverse
deb focal-updates main restricted universe multiverse
deb focal-proposed main restricted universe multiverse
deb focal-backports main restricted universe multiverse
deb-src focal main restricted universe multiverse
deb-src focal-security main restricted universe multiverse
deb-src focal-updates main restricted universe multiverse
deb-src focal-proposed main restricted universe multiverse
deb-src focal-backports main restricted universe multiverse
#中科大源
deb focal main restricted universe multiverse
deb focal-updates main restricted universe multiverse
deb focal-backports main restricted universe multiverse
deb focal-security main restricted universe multiverse
deb focal-proposed main restricted universe multiverse
deb-src focal main restricted universe multiverse
deb-src focal-updates main restricted universe multiverse
deb-src focal-backports main restricted universe multiverse
deb-src focal-security main restricted universe multiverse
deb-src focal-proposed main restricted universe multiverse
然後更新apt-get update
apt-get upgrade
ok! ubuntu 20 04 更換國內源
開啟sources.list檔案 sudo gedit etc apt sources.list刪除檔案所有內容,然後加入清華源 deb focal main restricted deb focal updates main restricted deb focal universe deb fo...
Ubuntu 20 04換阿里源的方法
1 備份原來的源 cp ra etc apt sources.list etc apt sources.list.bak 要知道當前系統的代號 codename 可以用以下命令 lsb release a 3 到阿里源看下這個源存在不存在 刪掉替換下面的 deb focal main restric...
Ubuntu 20 04更換阿里源
1 開啟終端,輸入下面命令進行備份 sudo cp etc apt sources.list etc apt sources.list.bak2 編輯sources.list檔案 在終端執行下面命令,開啟sources.list檔案進行編輯 sudo gedit etc apt sources.li...