mono-server-admin command not found

In this troubleshooting guide we learn how to fix mono-server-admin command not found error message

Introduction

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

mono-server-admin: command not found

or when using sudo you get the following error message

sudo: mono-server-admin: command not found

Solutions to mono-server-admin: command not found

How To Fix mono-server-admin: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mono-server-admin is provided by mono-apache-server package.

mono-apache-server 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 pulls in the default version of the Apache backend.

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

sudo apt-get -y install mono-apache-server

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

You can also use apt command to install mono-apache-server.

sudo apt -y install mono-apache-server

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

sudo aptitude install mono-apache-server

Summary

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