statgrab command not found

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

Introduction

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

statgrab: command not found

or when using sudo you get the following error message

sudo: statgrab: command not found

Solutions to statgrab: command not found

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

In Ubuntu statgrab is provided by statgrab package.

statgrab is:

statgrab provides an access to system statistics using a sysctl-style interface. This is useful for applications that don’t want to make library calls, but still want to access the statistics. An example is mrtg, for which scripts are provided to generate configuration files.

statgrab utilizes libstatgrab library.

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

sudo apt-get -y install statgrab

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

You can also use apt command to install statgrab.

sudo apt -y install statgrab

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

sudo aptitude install statgrab

Summary

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