為了更流暢的使用Ubuntu,我們經常會做的一件事就是更換軟件源:
注意事項:
1、不要隨意更換,要更換相匹配的軟件源,不然可能會造成系統錯亂等問題
好了,讓我們繼續;
1、找到軟件源,這里我們使用阿里源:(當然也可以用其他的源:華為,網易等)
https://developer.aliyun.com/mirror/
找到自己的系統,我的是Ubuntu20.04,點擊Ubuntu,找到對應的版本:復制內容
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
打開 sudo gedit /etc/apt/source.list
將里面的軟件源刪掉替換成復制內容;
然后:
sudo apt update
sudo apt upgrade
好的換源就完成了。