discovery.etcd.io command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
discovery.etcd.io: command not found
or when using sudo you get the following error message
sudo: discovery.etcd.io: command not found
Solutions to discovery.etcd.io: command not found
How To Fix discovery.etcd.io: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu discovery.etcd.io is provided by etcd-discovery package.
etcd-discovery is:
This code powers the public service at https://discovery.etcd.io. This package provides a standalone initial discovery URL if contacting the https://discovery.etcd.io is not possible in your deployment (for example if your server doesn’t have internet connectivity).
Note that in a normal etcd cluster setup, this service isn’t mandatory, however, etcd discovery is mandatory to be able to run OpenStack Magnum, which is why this package exist.
To fix this problem, we can install more using the command below.
sudo apt-get -y install etcd-discovery
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install etcd-discovery.
sudo apt -y install etcd-discovery
Or if you have aptitude installed you can use the following command.
sudo aptitude install etcd-discovery
Summary
In this tutorial we learn how to fix discovery.etcd.io command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.