简单修复错误“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 上更新软件包时一切都会顺利进行。