stun command not found

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

Introduction

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

stun: command not found

or when using sudo you get the following error message

sudo: stun: command not found

Solutions to stun: command not found

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

In Ubuntu stun is provided by stun-client package.

stun-client is:

The STUN protocol (Simple Traversal of UDP through NATs) is described in the IETF RFC 3489, available at http://www.ietf.org/rfc/rfc3489.txt. It’s used to help clients behind NAT to tunnel incoming calls through. This server is the counterpart to help the client identify the NAT and have it open the proper ports for it.

This package installs only the client.

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

sudo apt-get -y install stun-client

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

You can also use apt command to install stun-client.

sudo apt -y install stun-client

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

sudo aptitude install stun-client

Summary

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