玩转linux之换源(Ubuntu20.04)


为了更流畅的使用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

好的换源就完成了。

    


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM