tomoyo-patternize command not found

In this troubleshooting guide we learn how to fix tomoyo-patternize command not found error message

Introduction

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

tomoyo-patternize: command not found

or when using sudo you get the following error message

sudo: tomoyo-patternize: command not found

Solutions to tomoyo-patternize: command not found

How To Fix tomoyo-patternize: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu tomoyo-patternize is provided by tomoyo-tools package.

tomoyo-tools is:

TOMOYO Linux is a lightweight and easy-to-use path-based Mandatory Access Control (MAC) implementation with:

  • automatic policy configuration via “learning” mode;
  • an administrator-friendly policy language;
  • no need for SELinux, or userland program modifications.

This package provides the audit daemon and administrative utilities for use on a Linux kernel with TOMOYO support (standard in Debian kernels).

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

sudo apt-get -y install tomoyo-tools

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

You can also use apt command to install tomoyo-tools.

sudo apt -y install tomoyo-tools

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

sudo aptitude install tomoyo-tools

Summary

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