Trouble Shooting

[MySQL 설치 시 에러] RPM GPG KEY Error 해결 방법

yeit 2024. 1. 14. 14:34
728x90

 

 

RPM GPG KEY Error

mysql을 설치하려는데 아래와 같은 에러가 떴다.

찾아보니 MySQL의 GPG Key가 만료되어 발생되는 오류라고 한다.

...
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Importing GPG key 0x5071F5:
 Userid     : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
 Fingerprint: a4a9 4068 76fc 71 ... 5072 e1f5
 Package    : mysql80-community-release-el7-3.noarch (@/mysql80-community-release-el7-3.noarch)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


Public key for mysql-community-client-plugins-8.0.35-1.el7.x86_64.rpm is not installed


 Failing package is: mysql-community-client-plugins-8.0.35-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

 

 

해결 방법

새로운 버전의 GPG Key를 import 해야 한다.

MySQL 리포지토리의 2022 버전 GPG 키를 가져온 후, 다시 yum install하면 해결된다.

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