net-server command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
net-server: command not found
or when using sudo you get the following error message
sudo: net-server: command not found
Solutions to net-server: command not found
How To Fix net-server: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu net-server is provided by libnet-server-perl package.
libnet-server-perl is:
Net::Server is an extensible, general perl server engine that combines the good properties from Net::Daemon, NetServer::Generic, and Net::FTPServer; and borrows various concepts from the Apache webserver.
Features include:
- Single Server Mode
- Inetd Server Mode
- Preforking Simple Mode (PreForkSimple)
- Preforking Managed Mode (PreFork)
- Forking Mode
- Multiplexing Mode using a single process
- Multi port accepts on Single, Preforking, and Forking modes
- Simultaneous accept/recv on tcp, udp, and unix sockets
- Safe signal handling in Fork/PreFork avoids perl signal trouble
- User customizable hooks
- Chroot ability after bind
- Change of user and group after bind
- Basic allow/deny access control
- Customized logging (choose Syslog, log_file, or STDERR)
- HUP able server (clean restarts via sig HUP)
- Dequeue ability in all Fork and PreFork modes.
- Taint clean
- Written in Perl
- Protection against buffer overflow
- Clean process flow
- Extensibility
To fix this problem, we can install more using the command below.
sudo apt-get -y install libnet-server-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libnet-server-perl.
sudo apt -y install libnet-server-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libnet-server-perl
Summary
In this tutorial we learn how to fix net-server command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.