manila-api command not found

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

Introduction

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

manila-api: command not found

or when using sudo you get the following error message

sudo: manila-api: command not found

Solutions to manila-api: command not found

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

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

python3-manila is:

Manila is an OpenStack project to provide Shared Filesystems as a service. It provides coordinated access to shared or distributed file systems. While the primary consumption of file shares would be across OpenStack Compute instances, the service is also intended to be accessible as an independent capability in line with the modular design established by other OpenStack services. Manila is extensible for multiple backends (to support vendor or file system specific nuances / capabilities) and accommodates any of a variety of shared or distributed file system types.

This package contains the Python 3 library for Manila.

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

sudo apt-get -y install python3-manila

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

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

sudo apt -y install python3-manila

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

sudo aptitude install python3-manila

Summary

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