VMmanager Knowledge Base

Almalinux repositories GPG key validation error

Description

The problem occurs on cluster nodes with installed AlmaLinux versions lower than 8.8-3.el8.

An error occurs when adding a node:

Failed to validate GPG signature for qemu-img-40.module_el8.9.0+3554.2.x86_64

This problem is related to AlmaLinux and occurs because the old GPG key is no longer valid. According to the official AlmaLinux documentation, the GPG key works correctly in OS versions higher than 8.8-3.el8. See the official AlmaLinux documentation for details.

Note
We recommend that you periodically update the software packages on the cluster nodes for correct platform operation.

Solution

To solve the problem:

  1. Connect to the cluster node via SSH.
  2. Import an up-to-date GPG key:

    rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
  3. Perform an OS package upgrade of the host server OS:

    dnf update -y
  4. Check that the key has been added correctly:

    rpm -q gpg-pubkey-ced7258b-6525146f

    If the key is added correctly, the response is as follows:

    gpg-pubkey-ced7258b-6525146f

    If the key is not added:

    package gpg-pubkey-ced7258b-6525146f is not installed
  5. Re-add the node.