Ubuntu換源(阿里和中科大兩種)

2021-10-04 07:40:13 字數 1827 閱讀 3347

1、先將使用者更改為root,為了方便

su root	#根據提示輸入密碼

su password root # 若是root沒有密碼,可先設定密碼再切換

2、進入 /etc/apt目錄下面
cd /etc/apt
3、備份 sources.list
cp sources.list source.list.back
4、編輯 sources.list,將阿里源**寫入到其中
vim sources.list	# 進入vim ,若是許可權不夠則前面加上sudo
# 阿里源

deb bionic main restricted universe multiverse

deb-src bionic main restricted universe multiverse

deb bionic-security main restricted universe multiverse

deb-src bionic-security main restricted universe multiverse

deb bionic-updates main restricted universe multiverse

deb-src bionic-updates main restricted universe multiverse

deb bionic-proposed main restricted universe multiverse

deb-src bionic-proposed main restricted universe multiverse

deb bionic-backports main restricted universe multiverse

deb-src bionic-backports main restricted universe multiverse

# 中科大源

deb xenial main restricted universe multiverse

deb xenial-security main restricted universe multiverse

deb xenial-updates main restricted universe multiverse

deb xenial-proposed main restricted universe multiverse

deb xenial-backports 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-proposed main restricted universe multiverse

deb-src xenial-backports main restricted universe multiverse

5、更新
apt-get update		# 更新
6、最後可以進行檢驗
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 

apt-get update

Ubuntu 換中科大源

換源對於教育網使用者還有有很大好處的,一是提高了速度,二是免費獲取資源 sudo gedit etc apt sources.list一般情況下可以備份,針對於新手,就是把裡面的內容全部複製到另乙個檔案,命名為txt也行,然後就是準備新源。中科大最新源 deb edu cn ubuntu trust...

ubuntu 14 04阿里雲軟體源,中科大映象源

該源列表只針對 ubuntu 14.04 lts 不可以與其他版本的 ubuntu 混用 阿里雲的更新源比較快。其他版本更新源參見 源列表 先備份源列表 sudo cp etc apt sources.list etc apt sources.list backup 然後開啟源列表,清空內容,將下面...

ubuntu配置中科大源

乙個穩定的高速的源是支援我們在linux世界遨遊的基石 我推薦中科大源 支援archlinux ubuntu debian,以ubuntu16.04為例 開啟終端 sudo vim etc apt sources.list刪除所有,然後輸入 deb xenial main restricted un...