unicorn command not found

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

Introduction

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

unicorn: command not found

or when using sudo you get the following error message

sudo: unicorn: command not found

Solutions to unicorn: command not found

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

In Ubuntu unicorn is provided by unicorn package.

unicorn is:

Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix and Unix-like kernels. Slow clients should only be served by placing a reverse proxy capable of fully buffering both request and response in between Unicorn and slow clients.

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

sudo apt-get -y install unicorn

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

You can also use apt command to install unicorn.

sudo apt -y install unicorn

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

sudo aptitude install unicorn

Summary

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