placement-api command not found

In this troubleshooting guide we learn how to fix placement-api command not found error message

Introduction

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

placement-api: command not found

or when using sudo you get the following error message

sudo: placement-api: command not found

Solutions to placement-api: command not found

How To Fix placement-api: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu placement-api is provided by python3-placement package.

python3-placement is:

OpenStack is a reliable cloud infrastructure. Its mission is to produce the ubiquitous cloud computing platform that will meet the needs of public and private cloud providers regardless of size, by being simple to implement and massively scalable.

OpenStack Placement provides an HTTP service for managing, selecting, and claiming providers of classes of inventory representing available resources in a cloud.

This package contains the Python 3 placement libraries.

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

sudo apt-get -y install python3-placement

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

You can also use apt command to install python3-placement.

sudo apt -y install python3-placement

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

sudo aptitude install python3-placement

Summary

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