salt-api command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
salt-api: command not found
or when using sudo you get the following error message
sudo: salt-api: command not found
Solutions to salt-api: command not found
How To Fix salt-api: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu salt-api is provided by salt-api package.
salt-api is:
a modular interface on top of Salt that can provide a variety of entry points into a running Salt system. It can start and manage multiple interfaces allowing a REST API to coexist with XMLRPC or even a Websocket API.
The Salt API system is used to expose the fundamental aspects of Salt control to external sources. salt-api acts as the bridge between Salt itself and REST, Websockets, etc.
To fix this problem, we can install more using the command below.
sudo apt-get -y install salt-api
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install salt-api.
sudo apt -y install salt-api
Or if you have aptitude installed you can use the following command.
sudo aptitude install salt-api
Summary
In this tutorial we learn how to fix salt-api command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.