[解決方案] 以下簽章無效: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 上更新軟體包時一切都會順利進行。

對技術充滿熱情,我很高興寫 StealthSettings.com 自 2006 年起。我在作業系統方面擁有豐富的經驗: macOS, Windows 對 Linux,而且還包括程式語言和部落格平台(WordPress)和線上商店(WooCommerce、Magento、PrestaShop)。

如何 » Linux » [解決方案] 以下簽章無效:EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG
發表評論