阿里云镜像格式重新整理
sudo vim /etc/apt/sources.list.d/ubuntu.sources
粘贴以下内容
# Ubuntu 24.04 (Noble) 官方源
Types: deb
URIs: https://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-backports noble-securityComponents: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg# Ubuntu 24.04 (Noble) 安全更新源
Types: deb
URIs: https://mirrors.aliyun.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg# Ubuntu 24.04 (Noble) 更新源
Types: deb
URIs: https://mirrors.aliyun.com/ubuntu/
Suites: noble-updates
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg# Ubuntu 24.04 (Noble) 回滚更新源
Types: deb
URIs: https://mirrors.aliyun.com/ubuntu/
Suites: noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg# Ubuntu 24.04 (Noble) 提议源(可选,通常用于测试)
# Types: deb
# URIs: https://mirrors.aliyun.com/ubuntu/
# Suites: noble-proposed
# Components: main restricted universe multiverse# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
配置好后,运行 apt update 来更新软件包列表
sudo apt-get clean all
sudo apt update