when replace the apt resource, we encounted the matter of
apt key.
so, through scan the resource on web, there is the original link: https://chrisjean.com/fix-apt-get-update-the-following-signatures-couldnt-be-verified-because-the-public-key-is-not-available/
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93D
W: GPG error: https://mirrors.aliyun.com/ubuntu noble InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 871920D1991BC93D
then:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93D
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.qaBdkOeKRD/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93D
gpg: key 871920D1991BC93D: "Ubuntu Archive Automatic Signing Key (2018) <ftpmaster@ubuntu.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
so, get success not at all.
at the end, find that my source.list is error:
so use the right file,and copy to it:
Types: deb
URIs: http://security.ubuntu.com/ubuntu
#如果安全更新需要使用镜像站,上面这行也改成 URIs: https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
Suites: noble-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
it could get right results, and just :
sudo apt update
sudo apt upgrade
brilliant!