❤️ AZDIGI has officially updated to a new blog system. However, some posts may have incorrect or mismatched images. Please click the Report article button at the bottom of the post so AZDIGI can update as quickly as possible. Thank you!

In some cases, a VPS/Server using the AlmaLinux 8 operating system when first created will encounter an error message “
Error: GPG check FAILED ” when updating software with commandyum update ordnf update as shown below.

The cause occurs when AlmaLinux changes the GPG key so the GPG key stored in the operating system being used does not match.

To fix this error, you can execute the command update packagealmalinux-release There is no need to check the GPG key as follows:

dnf upgrade almalinux-release --nogpgcheck -y

Or you can also update all packages installed on the server with the following command.

dnf update --nogpgcheck -y

This versionalmalinux-release will be updated and use the new GPG key.

Wishing you success!

Share:
This article has been reviewed by AZDIGI Team

About the author

Thạch Phạm

Thạch Phạm

Đồng sáng lập và Giám đốc điều hành của AZDIGI. Có hơn 15 năm kinh nghiệm trong phổ biến kiến thức liên quan đến WordPress tại thachpham.com, phát triển website và phát triển hệ thống.

10+ years serving 80,000+ customers

Start your web project with AZDIGI