rebind command not found

In this troubleshooting guide we learn how to fix rebind command not found error message

Introduction

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

rebind: command not found

or when using sudo you get the following error message

sudo: rebind: command not found

Solutions to rebind: command not found

How To Fix rebind: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rebind is provided by websockify package.

websockify is:

websockify was formerly named wsproxy and was part of the noVNC project.

At the most basic level, websockify just translates WebSockets traffic to normal socket traffic. Websockify accepts the WebSockets handshake, parses it, and then begins forwarding traffic between the client and the target in both directions.

Websockify supports all versions of the WebSockets protocol (Hixie and HyBi). The older Hixie versions of the protocol only support UTF-8 text payloads. In order to transport binary data over UTF-8 an encoding must used to encapsulate the data within UTF-8.

With Hixie clients, Websockify uses base64 to encode all traffic to and from the client. This does not affect the data between websockify and the server.

With HyBi clients, websockify negotiates whether to base64 encode traffic to and from the client via the subprotocol header (Sec-WebSocket-Protocol). The valid subprotocol values are ‘binary’ and ‘base64’ and if the client sends both then the server (the Python implementation) will prefer ‘binary’. The ‘binary’ subprotocol indicates that the data will be sent raw using binary WebSocket frames. Some HyBi clients (such as the Flash fallback and older Chrome and iOS versions) do not support binary data which is why the negotiation is necessary.

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

sudo apt-get -y install websockify

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

You can also use apt command to install websockify.

sudo apt -y install websockify

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

sudo aptitude install websockify

Summary

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