Score:1

sudo apt-get update fails public key is not available: NO_PUBKEY, sudo gpg --keyserver pgpkeys.mit.edu --recv-key also fails

kn flag

Ubuntu 18.04 For some time now the graphical GUI Software Updater would report

enter image description here

Then click ok would give me

enter image description here

Then click Install Now

it would report loading for a fraction of a second then close. I should have been suspicious, but ...

Well, today I tried

sudo apt-get update

and got the following error

Get:14 https://packagecloud.io/shiftkey/desktop/any any InRelease [23.2 kB] Err:14 https://packagecloud.io/shiftkey/desktop/any any InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7E65990E879472F Reading package lists... Done W: GPG error: https://packagecloud.io/shiftkey/desktop/any any InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7E65990E879472F E: The repository 'https://packagecloud.io/shiftkey/desktop/any any InRelease' is not signed.

askubuntu.com/questions/849919/fail-to-sudo-apt-get-update

suggests

sudo apt-get --allow-unauthenticated update

but this fails too.

fix-apt-get-update-the-following-signatures-couldnt-be-verified-because-the-public-key-is-not-available many more questions with same answer and more

suggests

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys xxxx

but this fails too "gpg: keyserver receive failed: No data".

Suggestions for what to do next would be appreciated.

Organic Marble avatar
us flag
Disable the bad repo on the Other Software tab of the Software and Updates app.Whatever packages were installed from there will get orphaned, but you should be able to complete the update.
Score:3
us flag

Installation instructions

Run it in the terminal

curl -s `https://packagecloud.io/install/repositories/shiftkey/desktop/script.deb.sh | sudo bash`

enter image description here

Alternative option. This is the command that will automatically find and add the necessary security keys of the connected repositories:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com `sudo apt-get update 2>&1 | grep -o '[0-9A-Z]\{16\}$' | xargs`
Score:1
us flag

If you look at the repository's webpage (https://packagecloud.io/shiftkey/desktop/), you'll find a button that leads you to the "Debian Installation Instructions" which tell you to download a script and execute it. Said script will pull the required GPG key from https://packagecloud.io/shiftkey/desktop/gpgkey and feed it into apt-key. Alternatively, look at https://github.com/shiftkey/desktop/#user-content-debianubuntu-distributions which lists the detailed manual steps.

grabbag avatar
kn flag
does this reload the desktop? I ran what it said "curl -s https://packagecloud.io/install/repositories/shiftkey/desktop/script.deb.sh | sudo bash" and now "sudo apt-get update" works. The GUI still closes in a fraction of a second, so no idea if this is normal or it is still misbehaving.
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.