apt update のエラーの対処方法(Warning: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. OpenPGP signature verification failed: https://developer.download.nvidia.com/compute/cuda/repos/deb

apt updateで以下のエラー(厳密には警告?)が出る場合の対処法です。2026年2月以降、CUDAや生成AIを使っているサーバーで頻出するエラーになると思われるのでエントリとして書いておきます。

エラーメッセージ

Warning: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. OpenPGP signature verification failed: https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64  InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on EB693B3035CD5710E231E123A4B469963BF863CC is not bound:            No binding signature at time 2026-01-29T20:38:07Z   because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance   because: SHA1 is not considered secure since 2026-02-01T00:00:00Z

修正方法

設定ファイル /usr/share/apt/default-sequoia.config に以下の行があるので

[hash_algorithms]
sha1.second_preimage_resistance = 2026-02-01    # Extend the expiry for legacy repositories

ここの日付を 2028-02-01 などに変更すると警告が消えます

詳細

詳細を以下のエントリに書いてます。よろしければ併せてご覧ください

pyopyopyo.hatenablog.com