slirp4netns command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
slirp4netns: command not found
or when using sudo you get the following error message
sudo: slirp4netns: command not found
Solutions to slirp4netns: command not found
How To Fix slirp4netns: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu slirp4netns is provided by slirp4netns package.
slirp4netns is:
slirp4netns provides user-mode networking for unprivileged network namespaces.
slirp4netns allows connecting a network namespace to the Internet in a completely unprivileged way, by connecting a TAP device in a network namespace to the usermode TCP/IP stack (“slirp”).
To fix this problem, we can install more using the command below.
sudo apt-get -y install slirp4netns
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install slirp4netns.
sudo apt -y install slirp4netns
Or if you have aptitude installed you can use the following command.
sudo aptitude install slirp4netns
Summary
In this tutorial we learn how to fix slirp4netns command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.