pt-websocket-server command not found

In this troubleshooting guide we learn how to fix pt-websocket-server command not found error message

Introduction

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

pt-websocket-server: command not found

or when using sudo you get the following error message

sudo: pt-websocket-server: command not found

Solutions to pt-websocket-server: command not found

How To Fix pt-websocket-server: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pt-websocket-server is provided by pt-websocket package.

pt-websocket is:

Pluggable transports are tools that transform a stream of application traffic into a different format on the network. This helps to bypass network-level censorship.

This package contains a server transport plugin that accepts connections transformed to look like the websocket protocol. This is typically used to enhance systems like Tor, to provide service even to censored users.

See flashproxy-client for a corresponding client transport plugin, meant for users to bypass censorship, that is compatible with the websocket protocol that this package expects.

(The source package also contains a websocket-client transport plugin, but this is just a demo that is less effective than flashproxy-client, and not meant to be used in real situations.)

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

sudo apt-get -y install pt-websocket

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

You can also use apt command to install pt-websocket.

sudo apt -y install pt-websocket

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

sudo aptitude install pt-websocket

Summary

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