gacutil command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gacutil: command not found
or when using sudo you get the following error message
sudo: gacutil: command not found
Solutions to gacutil: command not found
How To Fix gacutil: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gacutil is provided by mono-gac package.
mono-gac is:
Mono is a platform for running and developing applications based on the ECMA/ISO Standards. Mono is an open source effort led by Xamarin. Mono provides a complete CLR (Common Language Runtime) including compiler and runtime, which can produce and execute CIL (Common Intermediate Language) bytecode (aka assemblies), and a class library.
This package pulls in the default GAC (Global Assembly Cache) tool (gacutil) used by Mono to store shared CIL (Common Intermediate Language) libraries.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mono-gac
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mono-gac.
sudo apt -y install mono-gac
Or if you have aptitude installed you can use the following command.
sudo aptitude install mono-gac
Summary
In this tutorial we learn how to fix gacutil command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.