tpm2-initramfs-tool command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
tpm2-initramfs-tool: command not found
or when using sudo you get the following error message
sudo: tpm2-initramfs-tool: command not found
Solutions to tpm2-initramfs-tool: command not found
How To Fix tpm2-initramfs-tool: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu tpm2-initramfs-tool is provided by tpm2-initramfs-tool package.
tpm2-initramfs-tool is:
This package provides the TPM tool used by the initramfs. Its purpose is to generate/seal/unseal the FDE encrypytion key into the TPM persistent object using TPM2 ESAPI.
To fix this problem, we can install more using the command below.
sudo apt-get -y install tpm2-initramfs-tool
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install tpm2-initramfs-tool.
sudo apt -y install tpm2-initramfs-tool
Or if you have aptitude installed you can use the following command.
sudo aptitude install tpm2-initramfs-tool
Summary
In this tutorial we learn how to fix tpm2-initramfs-tool command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.