2022.1.25

【CentOS7】Mysql の yum upgrade で GPGキーエラー。

CentOS 7 で yum upgrade 中に、以下のようなエラーが発生して、更新が進みません。

The GPG keys listed for the "MySQL 8.0 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-client-plugins-8.0.28-1.el7.x86_64

いろいろ調べてみると、パッケージの著名確認のための GPGキー が MySQL8.0.28 のリリースで更新されている、とのこと。このキーの URL を更新しないといけないようです。

更新方法は↓

rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

詳しい情報は、MySQL のリリースノートにて確認できます。

・Changes in MySQL 8.0.28 (2022-01-18, General Availability)

・Upgrading MySQL with the MySQL Yum Repository(MySQL Yumリポジトリを使用したMySQLのアップグレード)

ナカタケワークス

福岡の小さな会社専用のITフリーランスです。シンプルで、地球に優しい IT 環境を。