事象詳細
- 事象発生日時:2026年9月12日
- OS:Debian GNU/Linux 13 (trixie)
- エラー発生手順:
- ログイン
- apt パッケージ更新を確認
sudo apt update
- エラーメッセージ:
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://apt.releases.hashicorp.com trixie
InRelease: Sub-process /usr/bin/sqv returned an error code (1),
error message is: Missing key *******, which is needed to verify signature.
解決方法
# GPG is required for the package signing key
sudo apt install gpg
# Download the signing key to a new keyring
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
# Verify the key's fingerprint
gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint
# The fingerprint must match 798A EC65 4E5C 1542 8C8E 42EE AA16 FCBC A621 E701, which can also be verified at https://www.hashicorp.com/security under "Linux Package Checksum Verification".
# Add the HashiCorp repo
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
# apt update successfully
sudo apt update
引用元: