要約
- aws elasticbeanstalkでデプロイ中に以下のようなエラーが出る The GPG keys listed for the "xxx" repository are already installed but they are not correct for this package
- 手動で追加したリポジトリのGPG keyをインポートできてなかった
- .ebextensionsにインポートコマンドを追加して解決
エラー
The GPG keys listed for the "xxx" repository are already installed but they are not correct for this package
GPG keyとは
yumやapt-getでインストールするパッケージの検証用鍵
https://tech.nikkeibp.co.jp/it/article/Keyword/20091204/341579/
あるパッケージのgpg keyをimportできてなかったのでeb deploy中にエラーになっていた
解決法
commands:
import-gpg-key:
command: rpm --import https://path-to-gpg-key
command: rpm --import https://path-to-gpg-key