Ubuntu20.10更换阿里云源

发布于:2024-08-15 ⋅ 阅读:(123) ⋅ 点赞:(0)

文章目录

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.10
DISTRIB_CODENAME=groovy
DISTRIB_DESCRIPTION="Ubuntu 20.10"

目前网上关于一些Ubuntu20.10更换阿里云源的方案都不可以,网上的方案都是使用该网址:http://mirrors.aliyun.com/ubuntu/
而目前阿里云将Ubuntu20.10的阿里云源更换到了https://mirrors.aliyun.com/oldubuntu-releases/ubuntu/

官网主页:http://old-releases.ubuntu.com/releases/
下载地址:https://mirrors.aliyun.com/oldubuntu-releases

https://mirrors.aliyun.com/oldubuntu-releases/ubuntu/dists/查找 groovy 相关的目录:
在这里插入图片描述

Ubuntu20.10更换阿里云源:

cp /etc/apt/sources.list /etc/apt/sources.list.back
vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/oldubuntu-releases/ubuntu/ groovy main restricted universe multiverse
deb-src http://mirrors.aliyun.com/oldubuntu-releases/ubuntu/ groovy main restricted universe multiverse

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

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

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

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

网站公告

今日签到

点亮在社区的每一天
去签到