sudo apt update 签名验证时发生错误

sudo apt update 签名验证时发生错误

我该如何解决这个sudo apt update错误?

Err:9 http://download.opensuse.org/repositories/home:/pzz/xUbuntu_20.04  InRelease
  The following signatures were invalid: EXPKEYSIG 23E07629B9E3C9E4 home:pzz OBS Project <home:[email protected]>
Fetched 2,441 B in 3s (819 B/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
19 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.opensuse.org/repositories/home:/pzz/xUbuntu_20.04  InRelease: The following signatures were invalid: EXPKEYSIG 23E07629B9E3C9E4 home:pzz OBS Project <home:[email protected]>
W: Failed to fetch http://download.opensuse.org/repositories/home:/pzz/xUbuntu_20.04/InRelease  The following signatures were invalid: EXPKEYSIG 23E07629B9E3C9E4 home:pzz OBS Project <home:[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.

我已经尝试过帖子中的解决方案 如何修复 GPG 错误“NO_PUBKEY”?但它们没有起作用:

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 23E07629B9E3C9E4
[sudo] password for master: 
Executing: /tmp/apt-key-gpghome.QYq1pmnpyE/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 23E07629B9E3C9E4
gpg: keyserver receive failed: Server indicated a failure
$ gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv ^C
$ 23E07629B9E3C9E4^C
$ gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 23E07629B9E3C9E4
gpg: keyserver receive failed: No data

答案1

您已添加一些第三方存储库到系统。目前其密钥已过期。

因此您必须使用软件和更新禁用此存储库。

答案2

只需更新过期的 gpg 密钥:

curl-fsSLhttps://download.opensuse.org/repositories/home:pzz/xUbuntu_20.04/Release.key| gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_pzz.gpg > /dev/null

来源: https://software.opensuse.org/download.html?project=home%3Apzz&package=sane-airscan

相关内容