nc.openbsd command not found

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

Introduction

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

nc.openbsd: command not found

or when using sudo you get the following error message

sudo: nc.openbsd: command not found

Solutions to nc.openbsd: command not found

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

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

netcat-openbsd 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 package contains the OpenBSD rewrite of netcat, including support for IPv6, proxies, and Unix sockets.

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

sudo apt-get -y install netcat-openbsd

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

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

sudo apt -y install netcat-openbsd

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

sudo aptitude install netcat-openbsd

Summary

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