从 ubuntu 20.04 升级到 24.04 后,运行 apt update 出现下面的 Notice
N: Missing Signed-By in the sources.list(5) entry for 'http://mirrors.cloud.aliyuncs.com/ubuntu'
N: Missing Signed-By in the sources.list(5) entry for 'http://mirrors.cloud.aliyuncs.com/ubuntu'
N: Missing Signed-By in the sources.list(5) entry for 'http://mirrors.cloud.aliyuncs.com/ubuntu'
请问如何消除这些 Notice?
需要在 /etc/apt/sources.list.d/third-party.sources
中给每个源添加下面的签名项
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
比如
Types: deb deb-src
URIs: http://mirrors.cloud.aliyuncs.com/ubuntu/
Suites: noble noble-updates
Components: main universe
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg