Score:0

Apt Not Recognizing Installed GPG Key

tr flag

Seemed like a simple problem, but it wasn't...

I am trying to install Nodejs on Ubuntu Server 20.04 (ppa) version and I am running into the GPG error "NO_PUBKEY"

Things I tried

I immediately ran sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1655A0AB68576280

and it was successful.

gpg: key 1655A0AB68576280: public key "NodeSource <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1

However, when I ran apt-get update it still gave me an error

Reading package lists... Done
W: GPG error: https://deb.nodesource.com/node_16.x focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280

Therefore I verified permissions:

cd /etc/apt
chmod -R 755 .
apt-get update

And that didn't work. Any thoughts?

additional info:

Just verifying the key is installed... apt just doesn't recognize it

#apt-key list
pub   rsa8091 2014-06-13 [SC]
      8FDE3 C675 BC1C 6FC3 1A8A  0A1C 1655 A0AB 6857 6280
uid           [ unknown] NodeSource <[email protected]>
sub   rsa8091 2014-06-13 [E]
Liso avatar
sd flag
Try this: `curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | sudo apt-key add -`
nightwatch avatar
tr flag
@Liso executed without error.. "OK" output, but apt-get still gives the above error when I update
nightwatch avatar
tr flag
@Liso FYI, I also tried using apt-key del to remove the key from the list... succeeded.. and then ran your command to reinstall it... same problem
Score:0
tr flag

When in doubt.. go straight to the source.

It seems the vultr.com's installation instructions were simply out of date. I went to the nodejs download site for Ubuntu:

https://downloads.nodesource.com/#debian-v16

And I used:

#curl -sL https://nsolid-deb.nodesource.com/nsolid_setup_4.x | sudo bash -
#sudo apt-get -y install nsolid-gallium nsolid-console

To get the latest version of NodeJS installed. Then verified:

node --version  
pm --version

On to the next problem... :-)

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.