In some specific cases when trying to install Google Chrome on a RHEL based Linux system via terminal, you might face an error similar to this:
GPG key at https://dl.google.com/linux/linux_signing_key.pub (0xD38B4796) is already installed
The GPG keys listed for the “google-chrome” repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.
This indicates that your system has outdated Google GPG (GNU Privacy Guard) keys installed and you should remove them first before attempting to install the Google Chrome browser.
- First use this command to check what kind of GPG keys you have installed on your system:
rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'2. Check in the returned results if you have these two specific GPG keys:
gpg-pubkey-7fac5991-4615767f gpg (Google, Inc. Linux Package Signing Key )
gpg-pubkey-d38b4796-570c8cd3 gpg (Google Inc. (Linux Packages Signing Authorit y) linux-packages-keymaster@google.com)
3. Remove them by using these commands:
sudo rpm --erase --allmatches gpg-pubkey-7fac5991-4615767f
sudo rpm --erase --allmatches gpg-pubkey-d38b4796-570c8cd34. Try installing Google Chrome again:
sudo dnf install google-chrome-stable
I had this error multiple times over the last two years in my RHEL9 installation – when updating/upgrading with the dnf package manager. Your guide to solving it is goog. I might only add the error is likely repeat with package updates, however the solution is as you present. To me, it seems Google and/or RH stopped wanting to pay attention to what each other is doing, and RH expects their corporate customer IT departments to pay for support 😉
Hey Fred, Thank you for your feedback, happy to hear that the solution is useful! 🙂 If you or anyone else has some ideas on how to improve this guide to completely solve this repetitive problem, feel free to share and I’ll be honored to add your reference in this article.
Also if you guys have some other struggles regarding this, please mention them and I’ll try to find a solution.