nstk command not found

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

Introduction

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

nstk: command not found

or when using sudo you get the following error message

sudo: nstk: command not found

Solutions to nstk: command not found

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

In Ubuntu nstk is provided by ns2 package.

ns2 is:

Provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks. Ns-2 is written in C++ and an Object oriented version of Tcl called OTcl.

Ns began as a variant of the REAL network simulator in 1989 and has evolved substantially over the past few years. In 1995 ns development was supported by DARPA through the VINT project at LBL, Xerox PARC, UCB, and USC/ISI. Currently ns development is support through DARPA with SAMAN and through NSF with CONSER, both in collaboration with other researchers including ACIRI. Ns has always included substantal contributions from other researchers, including wireless code from the UCB Daedelus and CMU Monarch projects and Sun Microsystems.

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

sudo apt-get -y install ns2

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

You can also use apt command to install ns2.

sudo apt -y install ns2

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

sudo aptitude install ns2

Summary

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