nc.traditional command not found

In this troubleshooting guide we learn how to fix nc.traditional command not found error message

Introduction

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

nc.traditional: command not found

or when using sudo you get the following error message

sudo: nc.traditional: command not found

Solutions to nc.traditional: command not found

How To Fix nc.traditional: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nc.traditional is provided by netcat-traditional package.

netcat-traditional is:

A simple Unix utility which reads and writes data across network connections using TCP or UDP protocol. It is designed to be a reliable “back-end” tool that can be used directly or easily driven by other programs and scripts. At the same time it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities.

This is the “classic” netcat, written by Hobbit. It lacks many features found in netcat-openbsd.

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

sudo apt-get -y install netcat-traditional

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

You can also use apt command to install netcat-traditional.

sudo apt -y install netcat-traditional

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

sudo aptitude install netcat-traditional

Summary

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