cadvisor command not found

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

Introduction

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

cadvisor: command not found

or when using sudo you get the following error message

sudo: cadvisor: command not found

Solutions to cadvisor: command not found

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

In Ubuntu cadvisor is provided by cadvisor package.

cadvisor is:

cAdvisor (Container Advisor) provides container users an understanding of the resource usage and performance characteristics of their running containers.

cAdvisor has native support for Docker containers and should support just about any other container type out of the box.

cAdvisor also exposes container stats as Prometheus (http://prometheus.io) metrics.

This package provides daemon that collects, aggregates, processes, and exports information about running containers. Specifically, for each container it keeps resource isolation parameters, historical resource usage, histograms of complete historical resource usage and network statistics. This data is exported by container and machine-wide.

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

sudo apt-get -y install cadvisor

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

You can also use apt command to install cadvisor.

sudo apt -y install cadvisor

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

sudo aptitude install cadvisor

Summary

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