nsctl command not found

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

Introduction

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

nsctl: command not found

or when using sudo you get the following error message

sudo: nsctl: command not found

Solutions to nsctl: command not found

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

In Ubuntu nsctl is provided by l2tpns package.

l2tpns is:

l2tpns is a daemon designed to terminate large volumes of layer 2 tunnelling protocol (RFC 2661: L2TP) sessions.

The daemon supports up to 65535 sessions plus features such as rate limiting, walled garden, usage accounting, and clustering (for both load-sharing and redundancy).

Note that only the LNS side of the L2TP protocol is implemented, for a more complete L2TP implementation see the l2tpd package.

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

sudo apt-get -y install l2tpns

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

You can also use apt command to install l2tpns.

sudo apt -y install l2tpns

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

sudo aptitude install l2tpns

Summary

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