Report this

What is the reason for this report?

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 77B79B3FFAF7EF65

Posted on July 8, 2023

whenever i run sudo apt update i get this error:

Hit:1 http://mirrors.digitalocean.com/ubuntu jammy InRelease
Hit:2 http://mirrors.digitalocean.com/ubuntu jammy-updates InRelease                                                                                                               
Hit:3 http://mirrors.digitalocean.com/ubuntu jammy-backports InRelease                                                                                                             
Hit:4 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease                                                                                                      
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease                                
Get:6 https://repos.insights.digitalocean.com/apt/do-agent main InRelease [5518 B]              
Err:6 https://repos.insights.digitalocean.com/apt/do-agent main InRelease 
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 77B79B3FFAF7EF65
Fetched 5518 B in 1s (4960 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repos.insights.digitalocean.com/apt/do-agent main InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 77B79B3FFAF7EF65
W: Failed to fetch https://repos.insights.digitalocean.com/apt/do-agent/dists/main/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 77B79B3FFAF7EF65
W: Some index files failed to download. They have been ignored, or old ones used instead.

There’s some digital ocean posts about this but none of the solutions work anymore

I found the solution Removing digital ocean agents from here /etc/apt/sources.list.d by going to the directory with

cd /etc/apt/sources.list.d

then ls to list the files then remove them both by using

rm -rf (name of file)

for all the agents and then running

sudo apt purge droplet-agent*

and

wget -qO- https://repos-droplet.digitalocean.com/install.sh | sudo bash


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey @nxoepsae,

Thank you for sharing the solution.

Yes,

wget -qO- https://repos-droplet.digitalocean.com/install.sh | sudo bash

Should do the trick as discussed here:

https://www.digitalocean.com/community/questions/cannot-get-updates-ubuntu-20-04

Having said that, thank you for sharing the steps you took to resolve it.

I am running Ubuntu 22.04.3 LTS OLS.

/etc/apt/sources.list.d# apt update

Hit:1 http://mirrors.digitalocean.com/ubuntu jammy InRelease

Hit:2 http://mirrors.digitalocean.com/ubuntu jammy-updates InRelease

Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease

Hit:4 http://mirrors.digitalocean.com/ubuntu jammy-backports InRelease

Hit:5 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease

Get:6 https://repos.insights.digitalocean.com/apt/do-agent main InRelease [5518 B]

Err:6 https://repos.insights.digitalocean.com/apt/do-agent main InRelease

  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 77B79B3FFAF7EF65

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

All packages are up to date.

**W:** An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repos.insights.digitalocean.com/apt/do-agent main InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 77B79B3FFAF7EF65

**W:** Failed to fetch https://repos.insights.digitalocean.com/apt/do-agent/dists/main/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 77B79B3FFAF7EF65

**W:** Some index files failed to download. They have been ignored, or old ones used instead.

Hey!

I recently came across this same issue.

What you could do in order to get this sorted out is to run the following command to manually import the gpg key first:

wget -qO- https://repos-droplet.digitalocean.com/gpg.key | sudo apt-key add -

And then run apt-get install droplet-agent to see if the problem is resolved.

If not, then run the following again:

wget -qO- https://repos-droplet.digitalocean.com/install.sh | sudo bash

Let me know how it goes!

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.