edac-ctl command not found

In this troubleshooting guide we learn how to fix edac-ctl command not found error message

Introduction

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

edac-ctl: command not found

or when using sudo you get the following error message

sudo: edac-ctl: command not found

Solutions to edac-ctl: command not found

How To Fix edac-ctl: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu edac-ctl is provided by edac-utils package.

edac-utils is:

This package contains the user-space utilities for use with the EDAC kernel subsystem. EDAC (Error Detection and Correction) is a set of Linux kernel modules for handling hardware-related errors. Currently its major focus is ECC memory error handling. However it also detects and reports PCI bus parity errors.

PCI parity errors are supported on all architectures (and are a mandatory part of the PCI specification).

Main memory ECC drivers are memory controller specific. At the time of writing, drivers exist for many x86-specific chipsets and CPUs, and some PowerPC, and MIPS systems.

This package provides command lines tools

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

sudo apt-get -y install edac-utils

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

You can also use apt command to install edac-utils.

sudo apt -y install edac-utils

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

sudo aptitude install edac-utils

Summary

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