アパートの署名が無効です。

アパートの署名が無効です。

を実行すると、apt update次のエラー行が表示されます。

Err :6 https://packages.sury.org/php bookworm InRelease
  Les signatures suivantes ne sont pas valables : EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]>

W: Une erreur s'est produite lors du contrôle de la signature. Le dépôt n'est pas mis à jour et les fichiers d'index précédents seront utilisés. Erreur de GPG : https://packages.sury.org/php bookworm InRelease : Les signatures suivantes ne sont pas valables : EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]>
W: Impossible de récupérer https://packages.sury.org/php/dists/bookworm/InRelease  Les signatures suivantes ne sont pas valables : EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]>
W: Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.

英語に翻訳するとこんな感じです。

Err :6 https://packages.sury.org/php bookworm InRelease
  The following signatures were invalid : EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]>

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 bookworm 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/bookworm/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.

この問題をどのように解決できますか?

ベストアンサー1

一般に、EXPKEYSIGエラーとは、そのキーを更新する必要がある(または新しいキーと交換する必要がある)ことを意味します。場合によっては、これを手動で行う必要があります(参照Kali Linuxストア署名が無効です:「次の署名が無効です:EXPKEYSIG ED444FF07D8D0BF6 Kali Linuxストア」例えば)。

この特別なケースでは、ストレージ署名を最新の状態に保つ正しい方法は次のとおりです。リポジトリに記載されているREADME.txt:

curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
sudo dpkg -i /tmp/debsuryorg-archive-keyring.deb

パッケージがインストールされ、リポジトリがAPTに設定されると、リポジトリで更新されるため、キーの有効期限の問題が回避されます。

おすすめ記事