从ubuntu 24.04 (noble) 起,ubuntu软件源设置已从/etc/apt/sources.list改到/etc/apt/sources.list.d/ubuntu.sources里配置。且简化了配置方法,(以Ubuntu Arm为例)只需打开ubuntu.sources
Types: deb URIs: https://mirrors.aliyun.com/ubuntu-ports/ Suites: noble noble-updates noble-backports Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg Types: deb URIs: https://mirrors.aliyun.com/ubuntu-ports/ Suites: noble-security Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
将两个URIs:后的 “https://mirrors.aliyun.com/ubuntu-ports/”改成“https://mirrors.aliyun.com/ubuntu-ports/”即完成换源操作。