12

please I need help. I tried to install osquery on my Ubuntu and this is what I am getting:

Err:5 http://gb.archive.ubuntu.com/ubuntu jammy InRelease                      
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
Err:9 https://ppa.launchpadcontent.net/jonathonf/vim/ubuntu jammy InRelease    
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8CF63AD3F06FC659
Get:1 https://osquery-packages.s3.us-east-1.amazonaws.com/deb deb InRelease [69.9 kB]
Err:8 http://gb.archive.ubuntu.com/ubuntu jammy-updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
Err:11 http://gb.archive.ubuntu.com/ubuntu jammy-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
Err:12 http://gb.archive.ubuntu.com/ubuntu jammy-security InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
Err:1 https://osquery-packages.s3.us-east-1.amazonaws.com/deb deb InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 97A80C63C9D8B80B

I have tried removing the keys but I keep getting this. I will really appreciate it.

sotirov
  • 4,379
Kenneth Shibaba
  • 163
  • 1
  • 1
  • 11

1 Answers1

19

Try

$> gpg --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C  

And then

$> gpg --export --armor 871920D1991BC93C | sudo apt-key add - && sudo apt-get update 

Repeat for each of your missing keys - you seem to have several.

Edit:

After version 22.04 apt-key is apparently deprecated

From the manpages

   If your existing use of apt-key add looks like this:

wget -qO- https://myrepo.example/myrepo.asc | sudo apt-key add -

Then you can directly replace this with the following (though note the recommendation below):

wget -qO- https://myrepo.example/myrepo.asc | sudo tee /etc/apt/trusted.gpg.d/myrepo.asc

karel
  • 122,292
  • 133
  • 301
  • 332
Nikolaj Hansen
  • 468
  • 3
  • 11