dnf 명령어를 이용해서 패키지를 업데이트를 하던 중에 다음과 같은 증상으로 설치가 되지 않았다.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
]# dnf update -y Last metadata expiration check: 0:02:41 ago on Fri Oct 10 15:22:32 2025. Dependencies resolved. =============================================================================================================================================================================== Package Architecture Version Repository Size =============================================================================================================================================================================== Upgrading: grafana x86_64 12.2.0-1 grafana 179 M Transaction Summary =============================================================================================================================================================================== Upgrade 1 Package Total size: 179 M Downloading Packages: [SKIPPED] grafana_12.2.0_17949786146_linux_amd64.rpm: Already downloaded error: Verifying a signature using certificate B53AE77BADB630A683046005963FA27710458545 (Grafana Labs <engineering@grafana.com>): 1. Certificiate 963FA27710458545 invalid: certificate is not alive because: The primary key is not live because: Expired on 2025-08-23T16:33:45Z 2. Key 963FA27710458545 invalid: key is not alive because: The primary key is not live because: Expired on 2025-08-23T16:33:45Z grafana 23 kB/s | 2.4 kB 00:00 GPG key at https://rpm.grafana.com/gpg.key (0x10458545) is already installed The GPG keys listed for the "grafana" 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: grafana-12.2.0-1.x86_64 GPG Keys are configured as: https://rpm.grafana.com/gpg.key The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'dnf clean packages'. Error: GPG check FAILED |
위와같이 GPG check FAILED 라면서 설치가 되지 않았다.
원인
출력된 내용을 보면 GPG Key 가 문제라는 건데, 만료 날짜가 2025-08-23 이며 날짜가 이미 지났다. 결국에는 GPG Key 가 만료가 되어서 설치가 진행되지 않은 것이다.
해결
먼저 문제가 됐던 GPG Key 에 대한 정보를 얻어야 한다. 다음과 같이 얻을 수 있다.
|
1 2 3 4 5 6 7 8 9 10 11 12 |
]# rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n' gpg-pubkey-350d275d-6279464b Rocky Enterprise Software Foundation - Release key 2022 <releng@rockylinux.org> public key gpg-pubkey-9d2a76a7-62206d8c CentOS NFV SIG (https://wiki.centos.org/SpecialInterestGroup/NFV) <security@centos.org> public key gpg-pubkey-3228467c-613798eb Fedora (epel9) <epel@fedoraproject.org> public key gpg-pubkey-10458545-64e78669 Grafana Labs <engineering@grafana.com> public key gpg-pubkey-d42d0685-62589a51 cudatools <cudatools@nvidia.com> public key gpg-pubkey-296458f3-6230de7d RPM Fusion free repository for EL (9) <rpmfusion-gpg-key-el9-free@rpmfusion.org> public key gpg-pubkey-fd98e8a3-67c7832b lihaohong_bazel (None) <lihaohong#bazel@copr.fedorahosted.org> public key gpg-pubkey-6fedfc85-682ae1a9 Release Engineering (Rocky Linux 10) <releng@rockylinux.org> public key gpg-pubkey-e37ed158-65785fa9 Fedora (epel10) <epel@fedoraproject.org> public key gpg-pubkey-02a07b14-66797122 nmstate_ovs-el10 (None) <nmstate#ovs-el10@copr.fedorahosted.org> public key gpg-pubkey-cdf6ba43-68798bdb Kitmaker (EL 10) <kitmaker@nvidia.com> public key |
rpm 명령어를 이용해 패키지 GPG Key 리스트를 볼 수 있다. 여기서 문제가 되는 것이 Grafana 이기 때문에 이제 이 Key 를 삭제하자.
|
1 |
]# rpm -e gpg-pubkey-10458545-64e78669 |
이제 다시 dnf update 를 하게 되면 정상적으로 설치가 진행된다.