cryptsetup command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cryptsetup: command not found
or when using sudo you get the following error message
sudo: cryptsetup: command not found
Solutions to cryptsetup: command not found
How To Fix cryptsetup: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cryptsetup is provided by cryptsetup-bin package.
cryptsetup-bin is:
Cryptsetup provides an interface for configuring encryption on block devices (such as /home or swap partitions), using the Linux kernel device mapper target dm-crypt. It features integrated Linux Unified Key Setup (LUKS) support.
This package provides cryptsetup, cryptsetup-reencrypt, integritysetup and veritysetup.
To fix this problem, we can install more using the command below.
sudo apt-get -y install cryptsetup-bin
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cryptsetup-bin.
sudo apt -y install cryptsetup-bin
Or if you have aptitude installed you can use the following command.
sudo aptitude install cryptsetup-bin
Summary
In this tutorial we learn how to fix cryptsetup command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.