dh_auto_build_nant command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dh_auto_build_nant: command not found
or when using sudo you get the following error message
sudo: dh_auto_build_nant: command not found
Solutions to dh_auto_build_nant: command not found
How To Fix dh_auto_build_nant: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dh_auto_build_nant is provided by cli-common-dev package.
cli-common-dev is:
This package must be installed if a CLI (Common Language Infrastructure) packaging environment is desired.
It includes debhelper scripts for managing automatic dependency tracking between native libraries, CLI libraries and CLI applications:
- dh_clideps to generate cli:Depends information for debian/control
- dh_makeclilibs to create clilibs files that are needed/used by dh_clideps
- dh_installcligac to register assemblies to be late installed into a GAC
- dh_cligacpolicy to create and install the policy files into a GAC
- dh_clifixperms to fix permissions of files in CLI package build directories
- dh_clistrip to strip CLI debug symbols from package build directories
To fix this problem, we can install more using the command below.
sudo apt-get -y install cli-common-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cli-common-dev.
sudo apt -y install cli-common-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install cli-common-dev
Summary
In this tutorial we learn how to fix dh_auto_build_nant command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.