wait-for-it command not found

In this troubleshooting guide we learn how to fix wait-for-it command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

wait-for-it: command not found

or when using sudo you get the following error message

sudo: wait-for-it: command not found

Solutions to wait-for-it: command not found

How To Fix wait-for-it: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu wait-for-it is provided by wait-for-it package.

wait-for-it is:

wait-for-it is a pure bash script that will wait on the availability of a host and TCP port. It is useful for synchronizing the spin-up of interdependent services, such as linked docker containers. Since it is a pure bash script, it does not have any external dependencies.

To fix this problem, we can install more using the command below.

sudo apt-get -y install wait-for-it

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install wait-for-it.

sudo apt -y install wait-for-it

Or if you have aptitude installed you can use the following command.

sudo aptitude install wait-for-it

Summary

In this tutorial we learn how to fix wait-for-it command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.