본문 바로가기
Common/DataBase

[Mysql] dnf install mysql 설치 시 에러발생 조치

by 근육곰돌이 2023. 5. 3.
728x90

 

- 문제 발생 

dnf install mysql-community-libs 설치 시 

아래와 같이 "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022" 에러가 발생한다.

# dnf install mysql-community-libs-8.0.30-1.el9.x86_64
Last metadata expiration check: 0:02:12 ago on Wed May  3 15:45:38 2023.
Dependencies resolved.
====================================================================================================================
 Package                                  Architecture     Version                Repository                   Size
====================================================================================================================
Installing:
 mysql-community-libs                     x86_64           8.0.30-1.el9           mysql80-community           1.5 M
Installing dependencies:
 mysql-community-client-plugins           x86_64           8.0.30-1.el9           mysql80-community           1.4 M
 mysql-community-common                   x86_64           8.0.33-1.el9           mysql80-community           554 k

Transaction Summary
====================================================================================================================
Install  3 Packages

Total size: 3.3 M
Installed size: 25 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] mysql-community-client-plugins-8.0.30-1.el9.x86_64.rpm: Already downloaded                               
[SKIPPED] mysql-community-common-8.0.33-1.el9.x86_64.rpm: Already downloaded                                       
[SKIPPED] mysql-community-libs-8.0.30-1.el9.x86_64.rpm: Already downloaded                                         
MySQL 8.0 Community Server                                                          0.0  B/s |   0  B     00:00    
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022]
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

 

원인

Mysql의 GPG Key가 만료되어 발생되는 오류입니다.

 

조치

아래와 같이 GPG Key 갱신하면 된다.

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

 

반응형