nanocat command not found

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

Introduction

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

nanocat: command not found

or when using sudo you get the following error message

sudo: nanocat: command not found

Solutions to nanocat: command not found

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

In Ubuntu nanocat is provided by nanomsg-utils package.

nanomsg-utils is:

nanomsg is a socket library that provides several common communication patterns. It aims to make the networking layer fast, scalable, and easy to use. Implemented in C, it works on a wide range of operating systems with no further dependencies.

The communication patterns, also called “scalability protocols”, are basic blocks for building distributed systems. By combining them you can create a vast array of distributed applications. The following scalability protocols are currently available:

PAIR - simple one-to-one communication
BUS - simple many-to-many communication
REQREP - allows one to build clusters of stateless services
         to process user requests
PUBSUB - distributes messages to large sets of interested subscribers
PIPELINE - aggregates messages from multiple sources and
           load balances them among many destinations
SURVEY - allows one to query state of multiple applications in a single go

This package contains utilities for testing nanomsg.

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

sudo apt-get -y install nanomsg-utils

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

You can also use apt command to install nanomsg-utils.

sudo apt -y install nanomsg-utils

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

sudo aptitude install nanomsg-utils

Summary

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