Ubuntu执行sudo apt-get update报错W: An error occurred during the signature verification. The repository

Ubuntu执行sudo apt-get update报错W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used

报错内容:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5BA31D57EF5975CA
E: Failed to fetch https://mirrors.aliyun.com/docker-ce/linux/ubuntu/dists/xenial/InRelease  Unable to find expected entry 'stable/source/Sources' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch https://pkg.jenkins.io/debian-stable/binary/Release.gpg  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5BA31D57EF5975CA
W: Some index files failed to download. They have been ignored, or old ones used instead.

报错原因:

错误是由于缺少公钥导致的。可以通过以下命令添加公钥:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5BA31D57EF5975CA

# 关于第二个错误,可能是因为源列表中的条目不正确或文件格式不正确。可以检查源列表文件
# (/etc/apt/sources.list)中的条目是否正确,并尝试使用正确的条目更新。

解决办法:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5BA31D57EF5975CA
Executing: /tmp/tmp.LxWK4WC50x/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
5BA31D57EF5975CA
gpg: requesting key EF5975CA from hkp server keyserver.ubuntu.com
gpg: key EF5975CA: "Jenkins Project <jenkinsci-board@googlegroups.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1


# 这个输出表示已经成功从 keyserver.ubuntu.com 服务器上获取了公钥 5BA31D57EF5975CA。
# 由于该公钥已经存在,因此输出中包含 "unchanged: 1"。
# 现在再次尝试运行sudo apt-get update命令,应该会成功更新索引文件。
  • 4
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://ppa.launchpadcontent.net/apt-fast/stable/ubuntu jammy InRelease: Splitting up /var/lib/apt/lists/ppa.launchpadcontent.net_apt-fast_stable_ubuntu_dists_jammy_InRelease into data and signature failed W: GPG error: https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy InRelease: Splitting up /var/lib/apt/lists/partial/mirrors.tuna.tsinghua.edu.cn_ubuntu_dists_jammy_InRelease into data and signature failed E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates InRelease: Splitting up /var/lib/apt/lists/partial/mirrors.tuna.tsinghua.edu.cn_ubuntu_dists_jammy-updates_InRelease into data and signature failed E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports InRelease: Splitting up /var/lib/apt/lists/partial/mirrors.tuna.tsinghua.edu.cn_ubuntu_dists_jammy-backports_InRelease into data and signature failed E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://archive.ubuntu.com/ubuntu trusty Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'https://ppa.launchpadcontent.net/notepadqq-team/notepadqq/ubuntu jammy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
06-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

_长风_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值