tpm_restrictpubek command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
tpm_restrictpubek: command not found
or when using sudo you get the following error message
sudo: tpm_restrictpubek: command not found
Solutions to tpm_restrictpubek: command not found
How To Fix tpm_restrictpubek: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu tpm_restrictpubek 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_restrictpubek command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.