almalinux8でGPGエラー

almalinux8を使っていたら、アップデートでエラーがでました。その対策です

エラー文

Key imported successfully
Import of key(s) didn't help, wrong key(s)?
AlmaLinux 8 - AppStream                                                                                                                                                                                      3.3 MB/s | 3.4 kB     00:00
Importing GPG key 0xC21AD6EA:
Userid     : "AlmaLinux <packager@almalinux.org>"
Fingerprint: E53C F5EF 91CE B0AD 1812 ECB8 51D6 647E C21A D6EA
From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Key imported successfully
Import of key(s) didn't help, wrong key(s)?
Public key for NetworkManager-initscripts-updown-1.40.16-15.el8_9.noarch.rpm is not installed. Failing package is: NetworkManager-initscripts-updown-1:1.40.16-15.el8_9.noarch
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for glibc-gconv-extra-2.28-236.el8_9.13.x86_64.rpm is not installed. Failing package is: glibc-gconv-extra-2.28-236.el8_9.13.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for kernel-4.18.0-513.24.1.el8_9.x86_64.rpm is not installed. Failing package is: kernel-4.18.0-513.24.1.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for kernel-core-4.18.0-513.24.1.el8_9.x86_64.rpm is not installed. Failing package is: kernel-core-4.18.0-513.24.1.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for kernel-modules-4.18.0-513.24.1.el8_9.x86_64.rpm is not installed. Failing package is: kernel-modules-4.18.0-513.24.1.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for NetworkManager-1.40.16-15.el8_9.x86_64.rpm is not installed. Failing package is: NetworkManager-1:1.40.16-15.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for NetworkManager-libnm-1.40.16-15.el8_9.x86_64.rpm is not installed. Failing package is: NetworkManager-libnm-1:1.40.16-15.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for NetworkManager-team-1.40.16-15.el8_9.x86_64.rpm is not installed. Failing package is: NetworkManager-team-1:1.40.16-15.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for NetworkManager-tui-1.40.16-15.el8_9.x86_64.rpm is not installed. Failing package is: NetworkManager-tui-1:1.40.16-15.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for bind-export-libs-9.11.36-11.el8_9.1.x86_64.rpm is not installed. Failing package is: bind-export-libs-32:9.11.36-11.el8_9.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for cronie-1.5.2-8.el8.alma.1.x86_64.rpm is not installed. Failing package is: cronie-1.5.2-8.el8.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for cronie-anacron-1.5.2-8.el8.alma.1.x86_64.rpm is not installed. Failing package is: cronie-anacron-1.5.2-8.el8.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for curl-7.61.1-33.el8_9.5.x86_64.rpm is not installed. Failing package is: curl-7.61.1-33.el8_9.5.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for dhcp-client-4.3.6-49.el8_9.1.alma.1.x86_64.rpm is not installed. Failing package is: dhcp-client-12:4.3.6-49.el8_9.1.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for dhcp-common-4.3.6-49.el8_9.1.alma.1.noarch.rpm is not installed. Failing package is: dhcp-common-12:4.3.6-49.el8_9.1.alma.1.noarch
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for dhcp-libs-4.3.6-49.el8_9.1.alma.1.x86_64.rpm is not installed. Failing package is: dhcp-libs-12:4.3.6-49.el8_9.1.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for e2fsprogs-1.45.6-5.1.el8.alma.1.x86_64.rpm is not installed. Failing package is: e2fsprogs-1.45.6-5.1.el8.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for e2fsprogs-libs-1.45.6-5.1.el8.alma.1.x86_64.rpm is not installed. Failing package is: e2fsprogs-libs-1.45.6-5.1.el8.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for expat-2.2.5-11.el8_9.1.x86_64.rpm is not installed. Failing package is: expat-2.2.5-11.el8_9.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for glibc-2.28-236.el8_9.13.x86_64.rpm is not installed. Failing package is: glibc-2.28-236.el8_9.13.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for glibc-common-2.28-236.el8_9.13.x86_64.rpm is not installed. Failing package is: glibc-common-2.28-236.el8_9.13.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for glibc-langpack-en-2.28-236.el8_9.13.x86_64.rpm is not installed. Failing package is: glibc-langpack-en-2.28-236.el8_9.13.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for gnutls-3.6.16-8.el8_9.3.x86_64.rpm is not installed. Failing package is: gnutls-3.6.16-8.el8_9.3.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for iptables-1.8.5-11.el8_9.x86_64.rpm is not installed. Failing package is: iptables-1.8.5-11.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for iptables-ebtables-1.8.5-11.el8_9.x86_64.rpm is not installed. Failing package is: iptables-ebtables-1.8.5-11.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for iptables-libs-1.8.5-11.el8_9.x86_64.rpm is not installed. Failing package is: iptables-libs-1.8.5-11.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for kernel-tools-4.18.0-513.24.1.el8_9.x86_64.rpm is not installed. Failing package is: kernel-tools-4.18.0-513.24.1.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for kernel-tools-libs-4.18.0-513.24.1.el8_9.x86_64.rpm is not installed. Failing package is: kernel-tools-libs-4.18.0-513.24.1.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for less-530-2.el8_9.x86_64.rpm is not installed. Failing package is: less-530-2.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libblkid-2.32.1-44.el8_9.1.x86_64.rpm is not installed. Failing package is: libblkid-2.32.1-44.el8_9.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libcom_err-1.45.6-5.1.el8.alma.1.x86_64.rpm is not installed. Failing package is: libcom_err-1.45.6-5.1.el8.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libcurl-7.61.1-33.el8_9.5.x86_64.rpm is not installed. Failing package is: libcurl-7.61.1-33.el8_9.5.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libfdisk-2.32.1-44.el8_9.1.x86_64.rpm is not installed. Failing package is: libfdisk-2.32.1-44.el8_9.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libmount-2.32.1-44.el8_9.1.x86_64.rpm is not installed. Failing package is: libmount-2.32.1-44.el8_9.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libsmartcols-2.32.1-44.el8_9.1.x86_64.rpm is not installed. Failing package is: libsmartcols-2.32.1-44.el8_9.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libss-1.45.6-5.1.el8.alma.1.x86_64.rpm is not installed. Failing package is: libss-1.45.6-5.1.el8.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libssh-0.9.6-13.el8_9.x86_64.rpm is not installed. Failing package is: libssh-0.9.6-13.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libssh-config-0.9.6-13.el8_9.noarch.rpm is not installed. Failing package is: libssh-config-0.9.6-13.el8_9.noarch
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libsss_autofs-2.9.1-4.el8_9.5.alma.1.x86_64.rpm is not installed. Failing package is: libsss_autofs-2.9.1-4.el8_9.5.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libsss_certmap-2.9.1-4.el8_9.5.alma.1.x86_64.rpm is not installed. Failing package is: libsss_certmap-2.9.1-4.el8_9.5.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libsss_idmap-2.9.1-4.el8_9.5.alma.1.x86_64.rpm is not installed. Failing package is: libsss_idmap-2.9.1-4.el8_9.5.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libsss_nss_idmap-2.9.1-4.el8_9.5.alma.1.x86_64.rpm is not installed. Failing package is: libsss_nss_idmap-2.9.1-4.el8_9.5.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libsss_sudo-2.9.1-4.el8_9.5.alma.1.x86_64.rpm is not installed. Failing package is: libsss_sudo-2.9.1-4.el8_9.5.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libuuid-2.32.1-44.el8_9.1.x86_64.rpm is not installed. Failing package is: libuuid-2.32.1-44.el8_9.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for linux-firmware-20230824-120.git0e048b06.el8_9.noarch.rpm is not installed. Failing package is: linux-firmware-20230824-120.git0e048b06.el8_9.noarch
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for nftables-1.0.4-4.el8_9.x86_64.rpm is not installed. Failing package is: nftables-1:1.0.4-4.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for openssh-8.0p1-19.el8_9.2.x86_64.rpm is not installed. Failing package is: openssh-8.0p1-19.el8_9.2.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for openssh-clients-8.0p1-19.el8_9.2.x86_64.rpm is not installed. Failing package is: openssh-clients-8.0p1-19.el8_9.2.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for openssh-server-8.0p1-19.el8_9.2.x86_64.rpm is not installed. Failing package is: openssh-server-8.0p1-19.el8_9.2.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for perl-HTTP-Tiny-0.074-2.el8_9.1.noarch.rpm is not installed. Failing package is: perl-HTTP-Tiny-0.074-2.el8_9.1.noarch
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for platform-python-3.6.8-56.el8_9.3.alma.1.x86_64.rpm is not installed. Failing package is: platform-python-3.6.8-56.el8_9.3.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for platform-python-pip-9.0.3-23.el8_9.1.noarch.rpm is not installed. Failing package is: platform-python-pip-9.0.3-23.el8_9.1.noarch
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for python3-cryptography-3.2.1-7.el8_9.x86_64.rpm is not installed. Failing package is: python3-cryptography-3.2.1-7.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for python3-libs-3.6.8-56.el8_9.3.alma.1.x86_64.rpm is not installed. Failing package is: python3-libs-3.6.8-56.el8_9.3.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for python3-nftables-1.0.4-4.el8_9.x86_64.rpm is not installed. Failing package is: python3-nftables-1:1.0.4-4.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for python3-perf-4.18.0-513.24.1.el8_9.x86_64.rpm is not installed. Failing package is: python3-perf-4.18.0-513.24.1.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for python3-pip-wheel-9.0.3-23.el8_9.1.noarch.rpm is not installed. Failing package is: python3-pip-wheel-9.0.3-23.el8_9.1.noarch
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for python3-rpm-4.14.3-28.el8_9.x86_64.rpm is not installed. Failing package is: python3-rpm-4.14.3-28.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for rpm-4.14.3-28.el8_9.x86_64.rpm is not installed. Failing package is: rpm-4.14.3-28.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for rpm-build-libs-4.14.3-28.el8_9.x86_64.rpm is not installed. Failing package is: rpm-build-libs-4.14.3-28.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for rpm-libs-4.14.3-28.el8_9.x86_64.rpm is not installed. Failing package is: rpm-libs-4.14.3-28.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for rpm-plugin-selinux-4.14.3-28.el8_9.x86_64.rpm is not installed. Failing package is: rpm-plugin-selinux-4.14.3-28.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for rpm-plugin-systemd-inhibit-4.14.3-28.el8_9.x86_64.rpm is not installed. Failing package is: rpm-plugin-systemd-inhibit-4.14.3-28.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for sqlite-libs-3.26.0-19.el8_9.x86_64.rpm is not installed. Failing package is: sqlite-libs-3.26.0-19.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for sssd-client-2.9.1-4.el8_9.5.alma.1.x86_64.rpm is not installed. Failing package is: sssd-client-2.9.1-4.el8_9.5.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for sssd-common-2.9.1-4.el8_9.5.alma.1.x86_64.rpm is not installed. Failing package is: sssd-common-2.9.1-4.el8_9.5.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for sssd-kcm-2.9.1-4.el8_9.5.alma.1.x86_64.rpm is not installed. Failing package is: sssd-kcm-2.9.1-4.el8_9.5.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for sssd-nfs-idmap-2.9.1-4.el8_9.5.alma.1.x86_64.rpm is not installed. Failing package is: sssd-nfs-idmap-2.9.1-4.el8_9.5.alma.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for sudo-1.9.5p2-1.el8_9.x86_64.rpm is not installed. Failing package is: sudo-1.9.5p2-1.el8_9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for tzdata-2024a-1.el8.noarch.rpm is not installed. Failing package is: tzdata-2024a-1.el8.noarch
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for util-linux-2.32.1-44.el8_9.1.x86_64.rpm is not installed. Failing package is: util-linux-2.32.1-44.el8_9.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for libmaxminddb-1.2.0-10.el8_9.1.x86_64.rpm is not installed. Failing package is: libmaxminddb-1.2.0-10.el8_9.1.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for python3-unbound-1.16.2-5.el8_9.6.x86_64.rpm is not installed. Failing package is: python3-unbound-1.16.2-5.el8_9.6.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for unbound-libs-1.16.2-5.el8_9.6.x86_64.rpm is not installed. Failing package is: unbound-libs-1.16.2-5.el8_9.6.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
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

こんな感じでKEYが古いですとでます

対策

[vagrant@localhost ~]$ sudo rpm --import <a href="https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux">https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux</a>

個人支援・寄付について

サイトラボでは個人支援・寄付を受けております。ご協力いただける方はお願いいたします。当サイトではビットコインで受け付けております。

  • ビットコイン:3LHnADwZwUbic2L45EnVJEykiG6KfbqrwS