본문 바로가기
OS/Linux

[CentOS7] mysql 설치 중 GPG Key Error

by CodeDesigner 2022. 4. 28.

 문제 발생

[root@Test-Server local]# yum install mysql-server

..(생략)..

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-client-5.7.38-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

 

다음 로그 제일 아래에 GPG Keys are configured as ~~~ 와 같은 에러 로그가 나왔다.

 

 문제점 발견

 

찾아본 결과 gpgkey를 업데이트 해줘야했다.

 

 해결 방법

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

위의 명령어를 통해 GPGKey를 업데이트 해준 후에 다시 mysql-server를 다운로드 받았더니 해결 됐다.

'OS > Linux' 카테고리의 다른 글

[CentOS7] java 설치  (0) 2022.05.24
[CentOS7] tomcat7 설치  (0) 2022.05.13
[CentOS7] firewall 포트 개방하기  (0) 2022.04.28
[CentOS7] Shasum 설치  (0) 2022.04.27
CentOS7 wget 설치  (0) 2022.04.27

댓글