IBM Support

Fixing Google Chrome GPG Key Error on RHEL During dnf update

How To


Summary

A user encountered an issue while updating packages on a RHEL 9.3 VMware environment provisioned. Although a Red Hat Subscription was added to the environment, running dnf update resulted in a GPG key error specifically related to the Google Chrome repository. This document outlines the steps taken to resolve the issue.

Objective

Environment Details:

  • OS: RHEL 9.3

  • Problem Area: Package update failure (dnf update) due to GPG key mismatch

  • User was able to resolved the issue using below document

Resolution Steps:

  1. Identify the GPG key causing the error by running the following command:
    rpm -q gpg-pubkey
    Find the key that matches the one mentioned in the error (e.g. gpg-pubkey-d38b4796-570c8cd3).

  2. Remove the problematic Google GPG key:
    rpm -e gpg-pubkey-d38b4796-570c8cd3

  3. Re-import the correct Google public signing key:
    rpm --import https://dl.google.com/linux/linux_signing_key.pub

  4. Run the following commands to update:
    dnf check-update
    dnf clean packages
    dnf update

Done!

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"","label":""},"Business Unit":{"code":"","label":""},"Product":{"code":"SSNR6KN","label":"IBM Technology Zone"},"ARM Category":[{"code":"a8mKe0000004CVgIAM","label":"Content-\u003EVMWare"},{"code":"a8mKe0000004CUcIAM","label":"Infrastructure-\u003EVMWare"}],"ARM Case Number":"TS019425021","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":""}]

Document Information

Modified date:
01 July 2025

UID

ibm17237397