0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Debian で OpenPGP signature verification failed エラーが起きた際の対処方法

0
Posted at

事象詳細

  • 事象発生日時:2026年9月12日
  • OS:Debian GNU/Linux 13 (trixie)
  • エラー発生手順:
  1. ログイン
  2. 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

引用元:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?