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-570c8cd3
4. Try installing Google Chrome again:
sudo dnf install google-chrome-stable