nova-api command not found

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

Introduction

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

nova-api: command not found

or when using sudo you get the following error message

sudo: nova-api: command not found

Solutions to nova-api: command not found

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

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

python3-nova 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 Compute, codenamed Nova, is a cloud computing fabric controller. In addition to its “native” API (the OpenStack API), it also supports the Amazon EC2 API.

Nova is intended to be modular and easy to extend and adapt. It supports many different hypervisors (KVM and Xen to name a few), different database backends (SQLite, MySQL, and PostgreSQL, for instance), different types of user databases (LDAP or SQL), etc.

This package contains the Python 3 nova libraries.

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

sudo apt-get -y install python3-nova

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

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

sudo apt -y install python3-nova

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

sudo aptitude install python3-nova

Summary

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