m2adapter command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
m2adapter: command not found
or when using sudo you get the following error message
sudo: m2adapter: command not found
Solutions to m2adapter: command not found
How To Fix m2adapter: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu m2adapter is provided by pushpin package.
pushpin is:
Pushpin is a reverse proxy server that makes it easy to implement WebSocket, HTTP streaming, and HTTP long-polling services. It communicates with backend web applications using regular, short-lived HTTP requests (GRIP protocol). This allows backend applications to be written in any language and use any webserver.
Additionally, Pushpin does all of this without exposing a proprietary protocol to clients. The HTTP/WebSocket content between the client and your server is whatever you want it to be. This makes it ideal for implementing APIs.
Pushpin is written in C++. The name means to “pin” (hold) connections open for “pushing”.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pushpin
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pushpin.
sudo apt -y install pushpin
Or if you have aptitude installed you can use the following command.
sudo aptitude install pushpin
Summary
In this tutorial we learn how to fix m2adapter command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.