为了更流畅的使用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
好的换源就完成了。