tpm2_startup command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
tpm2_startup: command not found
or when using sudo you get the following error message
sudo: tpm2_startup: command not found
Solutions to tpm2_startup: command not found
How To Fix tpm2_startup: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu tpm2_startup is provided by tpm2-tools package.
tpm2-tools is:
This package contains a set of tools to use with TPM 2.0 chips, for common tasks and features provided by the hardware; such as for doing basic key management, attestation, encryption and signing.
To fix this problem, we can install more using the command below.
sudo apt-get -y install tpm2-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install tpm2-tools.
sudo apt -y install tpm2-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install tpm2-tools
Summary
In this tutorial we learn how to fix tpm2_startup command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.