[解决方案] 以下签名无效:EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG

简单修复错误“The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key尝试在 Debian 系统上更新软件包时出现”。

Err:10 https://packages.sury.org/php bullseye InRelease
  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]>
Fetched 14.1 kB in 1s (14.5 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php bullseye InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]>
W: Failed to fetch https://packages.sury.org/php/dists/bullseye/InRelease  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.

此错误还阻止在 Debian 服务器上更新软件包 Word哎呀。 (wo stack upgrade).

相关新闻: 如何在 Debian 12 上安装和配置 LEMP

The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key

出现此错误是因为 sury.org 更改了 Debian 的数字签名密钥,要解决此问题,您需要下载新密钥。

apt-key adv --fetch-keys https://packages.sury.org/php/apt.gpg

运行此命令后,您可以更新所有 Debian 软件包:

apt update && apt upgrade

那些使用 WordOps 将运行命令行:

wo stack upgrade

在 Debian 上更新软件包时一切都会顺利进行。

作为科技爱好者,我从2006年开始在StealthSettings.com上愉快地撰写文章。我在操作系统方面有丰富的经验,包括macOS、Windows和Linux,还熟悉编程语言和博客平台(WordPress),以及在线商店平台(WooCommerce、Magento、PrestaShop)。

如何 » Linux » [解决方案] 以下签名无效:EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG
发表评论