欢迎来到清街老酒的博客

どんな別れがあったとしても、出会ったことには必ず意味がある

ubuntu20.04换源

ubuntu20.04换源

时间2021.12月

一、修改配置文件

gedit /etc/apt/sources.list
编辑这个文件,也可以在编辑前进行备份

我这边用的是阿里源

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 apt-get update

sudo apt-get upgrade

若无报错则成功

posted @ 2021-12-17 12:08  清街老酒  阅读(529)  评论(0编辑  收藏  举报