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
Show comments

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.

Bobby Iliev
Site Moderator
Site Moderator badge
December 19, 2023

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

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.
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

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

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

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

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