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?