efikeygen command not found

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

Introduction

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

efikeygen: command not found

or when using sudo you get the following error message

sudo: efikeygen: command not found

Solutions to efikeygen: command not found

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

In Ubuntu efikeygen is provided by pesign package.

pesign is:

This package contains the pesign utility for signing UEFI binaries (PE-COFF format) as well as other associated tools. It is meant to follow the PE and Authenticode specifications. It is analogous to the tool described at http://msdn.microsoft.com/en-us/library/8s9b9yaz%28v=vs.80%29.aspx

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

sudo apt-get -y install pesign

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

You can also use apt command to install pesign.

sudo apt -y install pesign

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

sudo aptitude install pesign

Summary

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