1.打开配置文件
sudo vim /etc/apt/sources.list.d/ubuntu.sources
2.修改配置文件
# Ubuntu 24.04 (Noble) 官方源
Types: deb
URIs: https://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-backports 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-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
3.更新源
sudo apt update
sudo apt upgrade