sudo apt update failed

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!

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值