I am trying to follow the instructions here https://www.digitalocean.com/docs/monitoring/how-to/upgrade-legacy-agent/ to “Update Droplet to Monitoring”.
sudo apt-get purge do-agent
curl -sSL https://repos.insights.digitalocean.com/install.sh | sudo bash
My droplet is using “Ubuntu MEAN on 14.04”
I am getting the following output
> sudo apt-get purge do-agent
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package do-agent
> curl -sSL https://repos.insights.digitalocean.com/install.sh | sudo bash
Cleaning up old sources...OK
Verifying machine compatability...OK
Verifying compatability with script...OK
Installing apt repository...
Splitting up /var/lib/apt/lists/partial/downloads-distro.mongodb.org_repo_ubuntu-upstart_dists_dist_InRelease into data and signature failedE: GPG error: http://downloads-distro.mongodb.org dist InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
E: Unable to correct problems, you have held broken packages.
I tried running sudo apt-get update
but it still can’t find the do-agent
package. Any idea what could be causing these errors?
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!
Accepted Answer
I think that this is because Ubuntu 14 is no longer being supported by Ubuntu, so you would start seeing a lot of other things not working. I would just recommend migrating to Ubuntu 18 or 19 to make sure that you’ve got all the latest security patches and also packages available.
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.