If you’re encountering failures like “RPM-GPG-KEY-AlmaLinux Fail to update” while attempting to install or update cPanel on an AlmaLinux 8 server, or on a CloudLinux server that’s based on AlmaLinux 8, the issue might be due to outdated GPG keys. This problem manifests in the logs with messages indicating that the public key for a package is not installed, pointing to a specific file path for the AlmaLinux GPG key.

[0000-00-00 00:00:00 +0000] W Public key for [package name] is not installed. Failing package is: [package name]
[0000-00-00 00:00:00 +0000] W GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux

The installation process was unable to synchronize cPanel & WHM. Verify that your network can connect to httpupdate.cpanel.net and rerun the installer.

The logs also suggest that the installation process couldn’t synchronize cPanel & WHM and recommends checking the network’s connection to httpupdate.cpanel.net before rerunning the installer.

Problem

This issue arises because AlmaLinux has updated the GPG keys used on their package distribution servers. Servers created before this update may fail to download updates or install new packages due to the discrepancy in keys.

Workaround for New Installations and Updates

For those planning a new cPanel installation on AlmaLinux 8, the best approach is to start with a fresh installation of AlmaLinux without cPanel. This ensures that you’re working with the most current GPG keys and a clean environment. For existing servers needing updates, there’s a simple fix to align with the latest security standards set by AlmaLinux.

Run the following command to import the updated GPG keys from AlmaLinux:

rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux

This command fetches and imports the new keys, ensuring your server can securely download and install updates or new packages. If your server already recognizes the updated keys, the command will simply exit without making changes.

After importing the new GPG keys, your server should be ready for a smooth cPanel installation or update, aligning with the latest security practices and compatibility requirements.

Conclusion

Staying updated with the latest GPG keys is crucial for maintaining a secure and functional server environment, especially when installing or updating critical software like cPanel on AlmaLinux 8 or CloudLinux servers based on AlmaLinux 8. By following the steps outlined above, you can ensure that your server remains compatible with AlmaLinux’s security updates, allowing for uninterrupted cPanel service.

For more detailed information and updates, refer to the official AlmaLinux blog

 

Leave a Reply

Your email address will not be published. Required fields are marked *