dh-exec command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dh-exec: command not found
or when using sudo you get the following error message
sudo: dh-exec: command not found
Solutions to dh-exec: command not found
How To Fix dh-exec: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dh-exec is provided by dh-exec package.
dh-exec is:
Debhelper (in compat level 9 and above) allows its config files to be executable, and uses the output of such scripts as if it was the content of the config file.
To ease and standardize the most common tasks, this package provides a few solutions to help constructing such executable scripts:
- A way to ease variable substitution, from environment variables or dpkg-architecture.
- Ability to filter files by architecture or build profile, within a single debhelper control file.
- An extension to dh_install and dh_installman, with the ability to rename files.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dh-exec
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dh-exec.
sudo apt -y install dh-exec
Or if you have aptitude installed you can use the following command.
sudo aptitude install dh-exec
Summary
In this tutorial we learn how to fix dh-exec command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.