encapsulate command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
encapsulate: command not found
or when using sudo you get the following error message
sudo: encapsulate: command not found
Solutions to encapsulate: command not found
How To Fix encapsulate: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu encapsulate is provided by netpipes package.
netpipes is:
The netpipes package makes TCP/IP streams usable in shell scripts. It can also simplify client/server code by allowing the programmer to skip all the tedious programming bits related to sockets and concentrate on writing a filter, or other service.
To fix this problem, we can install more using the command below.
sudo apt-get -y install netpipes
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install netpipes.
sudo apt -y install netpipes
Or if you have aptitude installed you can use the following command.
sudo aptitude install netpipes
Summary
In this tutorial we learn how to fix encapsulate command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.