익명 15:54

Google Earth GPG error NO_PUBKEY 32EE5355A6BC6E42 on Ubuntu 24.04

Google Earth GPG error NO_PUBKEY 32EE5355A6BC6E42 on Ubuntu 24.04

I am running Ubuntu 24.04 LTS (Noble Numbat) and keeping getting a GPG signature verification error whenever I run sudo apt update.Here is the exact terminal output log:

Hit:1 http://dl.google.com/linux/earth/deb stable InRelease
Hit:2 https://dl.google.com/linux/chrome-stable/deb stable InRelease
Err:1 http://dl.google.com/linux/earth/deb stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 32EE5355A6BC6E42
Hit:3 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu noble InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/earth/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 32EE5355A6BC6E42
W: Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 32EE5355A6BC6E42
W: Some index files failed to download. They have been ignored, or old ones used instead.`

The contents of my /etc/apt/sources.list.d/google-earth.list file are:

deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main

What I have tried so far:

1 .Manually downloading and piping the key with wget and gpg --dearmor into /etc/apt/trusted.gpg.d/ and /etc/apt/keyrings/. wget repeatedly fails with no valid openPGP data found or throws a parsing mismatch.

2 . Fetching via keyserver directly using gpg --keyserver keyserver.ubuntu.com --recv-keys 32EE5355A6BC6E42. This continuously results in a gpg: could not parse keyserver URL error.

3.Running apt-key adv --keyserver hkp://://ubuntu.com --recv-keys 32EE5355A6BC6E42, but the terminal throws a no such file or directory or layout execution block.Since the repo file is automatically re-configured by Google's background cron script, adding a local signed-by tag directly to the .list file gets overwritten.

How can I get Ubuntu 24.04 to properly ingest and retain this Google Earth public key globally?



Top Answer/Comment:

Google changed their signing key recently, I encountered this same problem.

The official Google page here provides the method for obtaining the new key

From there:

Manual key installation for APT-based systems (Debian, Ubuntu, etc.)

Most package files you download and install from Google will automatically configure apt to trust this public key. However, if you experience any trouble with the keys, you can manually configure apt to trust the Google Linux package signing public keys globally by writing the public key file to /etc/apt/trusted.gpg.d/ as shown:

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo tee /etc/apt/trusted.gpg.d/google.asc >/dev/null
# NOTE: On systems with older versions of apt (i.e. versions prior to 1.4), the ASCII-armored
# format public key must be converted to binary format before it can be used by apt.
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/google.gpg >/dev/null

For me (Debian systems) the name of the key file changed from

/etc/apt/trusted.gpg.d/google-chrome.gpg

to

/etc/apt/trusted.gpg.d/google.asc

(The google-chrome.gpg was used for both Chrome and Earth, and it is possible that I changed the name of the file back when I set this up originally - but I'm sure it didn't end in .asc)

It might also be worth noting that I specify the keys explicitly in the sources.list like this:

deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/google.asc] http://[local-mirror-goes-here]/dl.google.com/linux/earth/deb/ stable main 
상단 광고의 [X] 버튼을 누르면 내용이 보입니다