Question

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

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

Submit an answer


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!

Sign In or Sign Up to Answer

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.

KFSys
Site Moderator
Site Moderator badge
July 10, 2023

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.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.