update-smart-drivedb command not found

In this troubleshooting guide we learn how to fix update-smart-drivedb command not found error message

Introduction

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

update-smart-drivedb: command not found

or when using sudo you get the following error message

sudo: update-smart-drivedb: command not found

Solutions to update-smart-drivedb: command not found

How To Fix update-smart-drivedb: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu update-smart-drivedb is provided by smartmontools package.

smartmontools is:

The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.) built into most modern ATA and SCSI hard disks. It is derived from the smartsuite package, and includes support for ATA/ATAPI-5 disks. It should run on any modern Linux system.

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

sudo apt-get -y install smartmontools

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

You can also use apt command to install smartmontools.

sudo apt -y install smartmontools

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

sudo aptitude install smartmontools

Summary

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