compartment command not found

In this troubleshooting guide we learn how to fix compartment command not found error message

Introduction

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

compartment: command not found

or when using sudo you get the following error message

sudo: compartment: command not found

Solutions to compartment: command not found

How To Fix compartment: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu compartment is provided by compartment package.

compartment is:

Compartment was designed to allow safe execution of privileged and/or untrusted executables and services. It can execute a process:

  • Setting specific Linux capabilities
  • Chrooting it to a certain location
  • setting the user or group it will run with
  • running a program before it is executed These features can be used to minimize the risk of a trojanized or vulnerable program/service.

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

sudo apt-get -y install compartment

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

You can also use apt command to install compartment.

sudo apt -y install compartment

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

sudo aptitude install compartment

Summary

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