aa-complain command not found

In this troubleshooting guide we learn how to fix aa-complain command not found error message

Introduction

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

aa-complain: command not found

or when using sudo you get the following error message

sudo: aa-complain: command not found

Solutions to aa-complain: command not found

How To Fix aa-complain: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu aa-complain is provided by apparmor-utils package.

apparmor-utils is:

apparmor-utils provides utilities that operate on AppArmor profiles. Profiles can be created, updated, enforced, set to complain mode, and disabled with tools such as aa-genprof, aa-enforce, aa-complain and aa-disable.

Additionally, the aa-easyprof utility helps generating AppArmor policy. It supports the use of templates and policy groups to quickly profile an application.

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

sudo apt-get -y install apparmor-utils

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

You can also use apt command to install apparmor-utils.

sudo apt -y install apparmor-utils

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

sudo aptitude install apparmor-utils

Summary

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