By Quppa
On a fresh Ubuntu 22.04 (LTS) x64 droplet, running apt update && apt upgrade will produce the following warning:
W: https://repos.insights.digitalocean.com/apt/do-agent/dists/main/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
This is a warning, not an error, and it can be fixed manually, but it would be nice for it not to happen in the first place in Ubuntu 22.04+.
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!
Hi there,
I have just tested this out and it seems to have worked as expected on a fresh new Ubuntu 22.04 Droplet:
wget -qO- https://repos-droplet.digitalocean.com/install.sh | sudo bash
# Output:
Verifying machine compatibility...
OK
Verifying compatibility with script...
OK
Checking architecture support...
OK
Installing Droplet Agent, 1 attempt
Setting up droplet-agent apt repository...
Checking dependencies for installing droplet-agent
Importing GPG public key
Installing droplet-agent
...
DigitalOcean Droplet Agent is successfully installed
After that, the apt update and apt upgrade also work as expected.
Would you mind confirming how exactly did you install the agent?
Best,
Bobby
Issue still exists…
Also I do not understand the fix… I cannot produce some of the bits they need as I generally do not know how…
I am not clueless but this error is new to me and the fix is confusing…
Where is DigitalOcean fix?
I figured out the fix…
If logged in a root (otherwise sudo to be added)
Run apt update
get the error
then;
apt-key export A4C6383F | gpg --dearmour -o /etc/apt/trusted.gpg.d/digitalocean-agent.gpg
Fixed!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.