conmon command not found

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

Introduction

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

conmon: command not found

or when using sudo you get the following error message

sudo: conmon: command not found

Solutions to conmon: command not found

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

In Ubuntu conmon is provided by conmon package.

conmon is:

Conmon is a monitoring program and communication tool between a container manager (like podman or CRI-O) and an OCI runtime (like runc or crun) for a single container.

Upon being launched, it double-forks to daemonize and detach from the parent that launched it. It then launches the runtime as its child. This allows managing processes to die in the foreground, but still be able to watch over and connect to the child process (the container).

While the container runs, conmon does two things:

  • Provides a socket for attaching to the container, holding open the container’s standard streams and forwarding them over the socket.
  • Writes the contents of the container’s streams to a log file (or to the systemd journal) so they can be read after the container’s death.

Finally, upon the containers death, conmon will record its exit time and code to be read by the managing programs.

Written in C and designed to have a low memory footprint, conmon is intended to be run by a container managing library. Essentially, conmon is the smallest daemon a container can have.

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

sudo apt-get -y install conmon

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

You can also use apt command to install conmon.

sudo apt -y install conmon

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

sudo aptitude install conmon

Summary

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