tpm2_sign command not found

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

Introduction

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

tpm2_sign: command not found

or when using sudo you get the following error message

sudo: tpm2_sign: command not found

Solutions to tpm2_sign: command not found

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

In Ubuntu tpm2_sign 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_sign command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.