AlmaLinux releases have a constantly updated architecture. Most of the time, repo addresses can change and the keys used can become obsolete. In today's article, we will discuss your inability to update, especially due to outdated keys.
When updating your server, you may encounter an error sequence as follows.
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 python3-urllib3-1.24.2-5.el8_9.2.noarch.rpm is not installed. Failing package is: python3-urllib3-1.24.2-5.el8_9.2.noarch
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for dnsmasq-2.79-31.el8_9.2.x86_64.rpm is not installed. Failing package is: dnsmasq-2.79-31.el8_9.2.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for podman-gvproxy-4.6.1-9.module_el8.9.0+3823+03810114.x86_64.rpm is not installed. Failing package is: podman-gvproxy-3:4.6.1-9.module_el8.9.0+3823+03810114.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for podman-plugins-4.6.1-9.module_el8.9.0+3823+03810114.x86_64.rpm is not installed. Failing package is: podman-plugins-3:4.6.1-9.module_el8.9.0+3823+03810114.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-config-server-1.40.16-15.el8_9.noarch.rpm is not installed. Failing package is: NetworkManager-config-server-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 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 bpftool-4.18.0-513.24.1.el8_9.x86_64.rpm is not installed. Failing package is: bpftool-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 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
The error seems to be caused by outdated update keys in general. For this, we need to import updated keys. Provide SSH connection and enter the code I have shared below.
sudo rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
After the process, you can provide the update process again.