nngcat command not found

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

Introduction

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

nngcat: command not found

or when using sudo you get the following error message

sudo: nngcat: command not found

Solutions to nngcat: command not found

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

In Ubuntu nngcat is provided by nng-utils package.

nng-utils is:

Lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery. The API frees the programmer from worrying about details like connection management, retries, and other common considerations, so that they can focus on the application instead of the plumbing.

This package contains the nngcat utility.

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

sudo apt-get -y install nng-utils

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

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

sudo apt -y install nng-utils

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

sudo aptitude install nng-utils

Summary

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