Can't install metrics

August 26, 2019 386 views
DigitalOcean

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?

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

  • I’m getting these errors with “Ubuntu 16.04.6 LTS”
    and the 2016 LTS should still be supported (in 2019):

    # apt-get update
    
    ...
    W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/xenial/InRelease  Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
    W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/xenial-updates/InRelease  Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
    W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/xenial-backports/InRelease  Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
    W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/xenial-security/InRelease  Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
    W: Failed to fetch https://repos.insights.digitalocean.com/apt/do-agent/dists/main/InRelease  Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
    
    edited by bobbyiliev
Have another answer? Share your knowledge.