dh_apparmor command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dh_apparmor: command not found
or when using sudo you get the following error message
sudo: dh_apparmor: command not found
Solutions to dh_apparmor: command not found
How To Fix dh_apparmor: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dh_apparmor is provided by dh-apparmor package.
dh-apparmor is:
dh-apparmor provides the debhelper tools used to install and migrate AppArmor profiles. This is normally used from package maintainer scripts during install and removal.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dh-apparmor
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dh-apparmor.
sudo apt -y install dh-apparmor
Or if you have aptitude installed you can use the following command.
sudo aptitude install dh-apparmor
Summary
In this tutorial we learn how to fix dh_apparmor command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.