tpm_nvread command not found

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

Introduction

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

tpm_nvread: command not found

or when using sudo you get the following error message

sudo: tpm_nvread: command not found

Solutions to tpm_nvread: command not found

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

In Ubuntu tpm_nvread is provided by tpm-tools package.

tpm-tools is:

tpm-tools is a group of tools to manage and utilize the Trusted Computing Group’s TPM hardware. TPM hardware can create, store and use RSA keys securely (without ever being exposed in memory), verify a platform’s software state using cryptographic hashes and more.

This package contains tools to allow the platform administrator the ability to manage and diagnose the platform’s TPM.

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

sudo apt-get -y install tpm-tools

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

You can also use apt command to install tpm-tools.

sudo apt -y install tpm-tools

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

sudo aptitude install tpm-tools

Summary

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