Report this

What is the reason for this report?

curl: (6) Could not resolve host: bash. - Upgrade from the Legacy Metrics Agent to the Current Agent

Posted on April 10, 2019

Following this guide https://www.digitalocean.com/docs/monitoring/how-to/upgrade-legacy-agent/.

Successfully uninstalled the legacy metrics agent.

When I reach step 2. curl -sSL https://insights.nyc3.cdn.digitaloceanspaces.com/install.sh | sudo bash

I receive an error: curl: (6) Could not resolve host: bash.



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.

I have encountered the same issue and followed the instructions below from the support team:


  1. If you do not have bash as a shell you’d need to run the script using whatever shell you have installed. You can download the script with:
curl -sSL https://insights.nyc3.cdn.digitaloceanspaces.com/install.sh -o /tmp/install.sh
  1. Run the installation:
sudo bash /tmp/install.sh

Thanks cheey2003!

This worked for me.

They should add this to the official page for server ServerPilotNoobs like me : )

Thanks, I’m also stuck at step 2.

I get this: E: Unable to locate package do-agent and dpkg: error processing package libroken18-heimdal:amd64 (--configure): package libroken18-heimdal:amd64 is not ready for configuration cannot configure (current status 'half-installed') Errors were encountered while processing: libroken18-heimdal:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1)

Ideas? Thanks!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.