ncat command not found

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

Introduction

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

ncat: command not found

or when using sudo you get the following error message

sudo: ncat: command not found

Solutions to ncat: command not found

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

In Ubuntu ncat is provided by ncat package.

ncat is:

ncat is a reimplementation of Netcat by the NMAP project, providing most of the features present in the original implementations, along with some new features such as IPv6 and SSL support. Port scanning support has been removed.

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

sudo apt-get -y install ncat

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

You can also use apt command to install ncat.

sudo apt -y install ncat

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

sudo aptitude install ncat

Summary

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