blkid command not found

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

Introduction

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

blkid: command not found

or when using sudo you get the following error message

sudo: blkid: command not found

Solutions to blkid: command not found

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

In Ubuntu blkid is provided by util-linux package.

util-linux is:

This package contains a number of important utilities, most of which are oriented towards maintenance of your system. Some of the more important utilities included in this package allow you to view kernel messages, create new filesystems, view block device information, interface with real time clock, etc.

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

sudo apt-get -y install util-linux

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

You can also use apt command to install util-linux.

sudo apt -y install util-linux

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

sudo aptitude install util-linux

Summary

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