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

April 10, 2019 2k views
Linux Commands LAMP Stack Monitoring

Following this guide

Successfully uninstalled the legacy metrics agent.

When I reach step 2.
curl -sSL | sudo bash

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

6 Answers

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 -o /tmp/
  2. Run the installation:

    sudo bash /tmp/

Thanks cheey2003!

This worked for me.

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

Thank you so much! That worked for me as well. Spent too long trying to figure out a workaround before this (to no avail).

thanks! nice work for me :)

I have too issue on step 2.
I get: E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Any suggestion please?

Have another answer? Share your knowledge.