Dnf update on Almalinux 8 Error: GPG check FAILED

Hello,

When I try to update the GPG check fails.

I tried to replace the default install one, but it won’t update

I use this one to update: https://rpms.litespeedtech.com/centos/RPM-GPG-KEY-litespeed

Package lsphp82-mysqlnd-8.2.8-1.el8.x86_64.rpm is not signed
Package lsphp82-pdo-8.2.8-1.el8.x86_64.rpm is not signed
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

How to resolve this issue?

Hello @mrEckendonk

Kindly follow basic instructions here How to ask for assistance?

We need os version and current cyberpanel version to further advice.

Also run rpm -q almalinux-release and post result here

yum update --nogpgcheck

This is not a solution it is a workaround to just disable checking gpg keys of repos. Not good idea.

Do as the error says

Before that run

$ rpm --import "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux"
$ dnf clean packages
# optional
$ dnf update lsphp82-mysqlnd && dnf update lsphp82-pdo
# or
$ dnf update

Also give us this information as this will help the community