Score:1

Ubuntu 22.10 : Fix missing GPG Key

mq flag

On ubuntu 22.10, I am facing this error of missing public key, went through a lot of articles and tried doing everything but still the error remains the same.

  1. Using this command, sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B and gpg --export --armor 4EB27DB2A3B88B8B | sudo apt-key add - and at last sudo apt-get update. But still, same error of not able to find any public image.

    enter image description here

  2. I tried adding keyserver in the gpg.conf file but still the error persists.

  3. I tried copying the public key from the ubuntu keyserver, pasting it into a file and then running sudo apt-key add key1 command but no luck, still the same error.

Please suggest a way to get rid of this error.

Artur Meinild avatar
vn flag
Please search the site, or ask a new question about `y-ppa-manager` - this has nothing to do with the missing Google key.
Score:0
vn flag

You need to install Google's PGP key for the repository in the correct way - also see here (which indicates the old and incorrect way of doing it).

First download the key and install it: (Notice that sudo apt-key add - has been replaced with sudo gpg --dearmor -o /etc/apt/keyrings/google_key.gpg, which is the preferred way to do this)

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /etc/apt/keyrings/google_key.gpg

Now edit your Google repository file to reference the keyring:

nano /etc/apt/sources.list.d/chrome.list

Edit the contents of the file to this: (Here I'm assuming your architecture is amd64)

deb [arch=amd64 signed-by=/etc/apt/keyrings/google_key.gpg] http://dl.google.com/linux/chrome/deb/ stable main

Now running sudo apt update should work again.

Please also read this post, about general information for future APT key management.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.