mod-mono-server4 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mod-mono-server4: command not found
or when using sudo you get the following error message
sudo: mod-mono-server4: command not found
Solutions to mod-mono-server4: command not found
How To Fix mod-mono-server4: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mod-mono-server4 is provided by mono-apache-server4 package.
mono-apache-server4 is:
mono-apache-server contains the backend for mod_mono. It lets you run ASP.NET web applications via Apache. mod_mono will call mono-apache-server to parse and compile the aspx code.
This package requires you to install libapache2-mod-mono for Apache 2.0.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mono-apache-server4
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mono-apache-server4.
sudo apt -y install mono-apache-server4
Or if you have aptitude installed you can use the following command.
sudo aptitude install mono-apache-server4
Summary
In this tutorial we learn how to fix mod-mono-server4 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.