Ubuntu 镜像源汇总(长期更新,含多个系统版本)

Ubuntu 是一个广泛使用的开源操作系统,有许多国内镜像源可供选择。主要有:清华大学开源软件镜像站、中科大镜像站、阿里云镜像站等,这些镜像站都提供 Ubuntu 软件仓库的镜像,用于加速 ubuntu 各软件的安装、更新等操作。执行软件仓库更新前,建议执行 mv /etc/apt/sources.list /etc/apt/sources.list.bak备份默认软件仓库。

阿里云

阿里云 官方镜像站:https://developer.aliyun.com/mirror/

阿里云 各版本 Ubuntu 系统镜像 下载地址:https://mirrors.aliyun.com/ubuntu-releases/

ubuntu 24.04 (noble)

apt 软件源仓库

cat > /etc/apt/sources.list << EOF

deb https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse

EOF

ubuntu 22.04 (jammy)

apt 软件源仓库

cat > /etc/apt/sources.list << EOF

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

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

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

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

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

EOF

ubuntu 20.04 (focal)

apt 软件源仓库

cat > /etc/apt/sources.list << EOF

deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

EOF

ubuntu 18.04 (bionic)

apt 软件源仓库

cat > /etc/apt/sources.list << EOF

deb https://mirrors.aliyun.com/ubuntu/ bionic main re
可以通过以下步骤更新Ubuntu系统镜像源: 1.打开终端并输入以下命令以备份原始镜像源文件: sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 2.编辑源列表文件,使用以下命令打开文件: sudo nano /etc/apt/sources.list 3.将现有的镜像源替换为你想要的镜像源, 如阿里源: deb http://mirrors.aliyun.com/ubuntu/ wily main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ wily-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ wily-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ wily-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ wily-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ wily main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ wily-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ wily-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ wily-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ wily-backports main restricted universe multiverse 4.保存并退出文本编辑器,使用以下命令: 按Ctrl + X, 输入 Y, 回车。 5.更新服务器列表,使用以下命令: sudo apt-get update 6.现在你可以更新系统和安装新软件。 请注意,你可以选择不同的镜像源,具体取决于你的位置和Internet连接速度。更新Ubuntu系统镜像源可以加速更新和软件安装过程。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值