ハマログ

株式会社イーツー・インフォの社員ブログ

yum update時にMySQLのアップデートがエラーになる

Amazon Linux 2でyum updateを実行したときに、MySQLのバージョンアップでエラーが発生して正常終了できませんでした。
yum update -y

warning: /var/cache/yum/x86_64/2/mysql57-community/packages/mysql-community-libs-5.7.37-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql から鍵を取得中です。

The GPG keys listed for the "MySQL 5.7 Community Server" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.

Failing package is: mysql-community-libs-5.7.37-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
メッセージからすると署名用のGPGキーが無効になっているようです。

対応

あたらしいGPGキーをインポートします。
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
対応後、再度yum updateを実行したところ、問題なく終了しました。
DBmysqlOSupdateyumyum updateミドルウェア

  kaneko tomo   2022年6月25日


関連記事

AWSを知る

AWS Solutions Training for Partners行ってきま…

GCEで利用可能なイメージ一覧の取得

Google Compute Engineで利用できる公開イメージの一覧を取得す…

Amazon Simple Queue Service をPHPで使ってみる

皆様、お疲れ様です。 uminchuです 今回は前回軽く触れたAWSの機能の一つ…


← 前の投稿

次の投稿 →