ubuntu20.10替换阿里云源

1、ubuntu20.10 查看代号

hj@hj-vm-ubuntu:/etc/apt$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.10 Release: 20.10 Codename: groovy 1 2 3 4 5 6 2、查看阿里云是否有该版本源 http://mirrors.aliyun.com/ubuntu/dists/ 20210221103211917.png

3、修改文件/etc/apt/sources.list的内容,全部替换如下数据 deb http://mirrors.aliyun.com/ubuntu/ groovy main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ groovy main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ groovy-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ groovy-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ groovy-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ groovy-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ groovy-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ groovy-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ groovy-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ groovy-backports main restricted universe multiverse

4、更新源

sudo apt-get update ———————————————— 版权声明:本文为CSDN博主「vchost」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/vchost/article/details/113914320


已有 0 条评论

    欢迎您,新朋友,感谢参与互动!