Skip to main content
  1. Posts/

AlmaLinux Update Error — GPG Check FAILED

·1 min·
almalinux almalinux
Table of Contents

Issue
#

Saat melakukan update sistem di AlmaLinux muncul error seperti berikut:

Public key for libstdc++-8.5.0-18.el8.alma.x86_64.rpm is not installed. Failing package is: libstdc++-8.5.0-18.el8.alma.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for ncurses-6.1-9.20180224.el8_8.1.x86_64.rpm is not installed. Failing package is: ncurses-6.1-9.20180224.el8_8.1.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for ncurses-base-6.1-9.20180224.el8_8.1.noarch.rpm is not installed. Failing package is: ncurses-base-6.1-9.20180224.el8_8.1.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for ncurses-libs-6.1-9.20180224.el8_8.1.x86_64.rpm is not installed. Failing package is: ncurses-libs-6.1-9.20180224.el8_8.1.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
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

Penyebab
#

Mengacu pada rilis resmi AlmaLinux 8 GPG key change, error ini terjadi karena GPG KEY AlmaLinux 8 sebelumnya telah kedaluwarsa (Januari 2024). Akibatnya paket yang diunduh tidak dapat diverifikasi sehingga proses update gagal.

Solusi
#

1️Import GPG KEY AlmaLinux terbaru
#

Jalankan perintah berikut untuk mengimpor kunci GPG baru:

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

Jika ingin memastikan semua key telah terpasang, bisa juga menjalankan:

rpm -qa gpg-pubkey*

Perbarui paket almalinux-release
#

Paket ini berisi metadata repository dan GPG key yang terbaru.

dnf upgrade almalinux-release

Bersihkan cache lalu jalankan update ulang
#

Jika sebelumnya sudah ada paket gagal diverifikasi:

dnf clean packages
dnf update -y

Related

Setup Openvpn Server
·4 mins
openvpn vpn openvpn
Setup GPT Researcher dengan Docker
·2 mins
docker docker
Auto Shutdown Azure Container Apps
·4 mins
azure azure
Implementasi Traefik dengan CrowdSec
·3 mins
traefik traefik crowdsec
Creating Azure Container Apps
·6 mins
azure azure
Deploy Azure Function App
·3 mins
azure azure