sudo apt-get update
Hit:1 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Get:2 http://mirrors.digitalocean.com/ubuntu focal InRelease [265 kB]
Hit:3 http://mirrors.digitalocean.com/ubuntu focal-updates InRelease
Hit:4 http://mirrors.digitalocean.com/ubuntu focal-backports InRelease
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:6 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease [5518 B]
Hit:7 https://download.docker.com/linux/ubuntu focal InRelease
Err:6 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 35696F43FC7DB4C2
Fetched 384 kB in 1s (411 kB/s)
Reading package lists... Done
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-droplet.digitalocean.com/apt/droplet-agent main InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 35696F43FC7DB4C2
W: Failed to fetch https://repos-droplet.digitalocean.com/apt/droplet-agent/dists/main/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 35696F43FC7DB4C2
W: Some index files failed to download. They have been ignored, or old ones used instead.
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.
Hi,
I ran into this problem today also. I do not know what changed that necessitated this, but this resolved it for me:
Several other methods of adding the key did not work. For whatever reason, only the above did.
Thanks, Vishnu
To fix this I had to fully remove and re-install the digital ocean agent, which meant:
sudo dpkg --configure -a
sudo apt-get remove droplet-agent
sudo rm /etc/apt/sources.list.d/droplet-agent.list
sudo apt-get update
wget -qO- https://repos-droplet.digitalocean.com/install.sh | sudo bash
Same problem. Did you/anyone get an answer? Support is impossible to reach which I find disappointing. The last time I needed support was perhaps a few years ago and I do not recall it being unavailable or buried so deep to have made the search cost so high that I gave up trying to find out how to get Digitalocean to unbreak our servers.
EDIT: I just saw the thread. It is solved, but nevertheless annoying/disappointing/dissatisfying. I am particularly annoyed at the impossibility of even asking Digitalocean staff for support. Cannot create a support ticket without logging in, cannot log in because there is no password, cannot get password - perhaps only available if I pay them for support to not break my servers. Insane.