volume_key command not found

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

Introduction

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

volume_key: command not found

or when using sudo you get the following error message

sudo: volume_key: command not found

Solutions to volume_key: command not found

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

In Ubuntu volume_key is provided by volume-key package.

volume-key is:

This package provides a command-line tool for manipulating storage volume encryption keys and storing them separately from volumes.

The main goal of the software is to allow restoring access to an encrypted hard drive if the primary user forgets the passphrase. The encryption key back up can also be useful for extracting data after a hardware or software failure that corrupts the header of the encrypted volume, or to access the company data after an employee leaves abruptly.

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

sudo apt-get -y install volume-key

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

You can also use apt command to install volume-key.

sudo apt -y install volume-key

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

sudo aptitude install volume-key

Summary

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