ykgenerate command not found

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

Introduction

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

ykgenerate: command not found

or when using sudo you get the following error message

sudo: ykgenerate: command not found

Solutions to ykgenerate: command not found

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

In Ubuntu ykgenerate is provided by libyubikey-dev package.

libyubikey-dev is:

Yubikeys are USB tokens that act like keyboards and generate one-time passwords. The tokens are produced and sold by Yubico

This library is used for decrypting the one-time passwords into their various components.

This package contains the necessary files for developing using libyubikey.

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

sudo apt-get -y install libyubikey-dev

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

You can also use apt command to install libyubikey-dev.

sudo apt -y install libyubikey-dev

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

sudo aptitude install libyubikey-dev

Summary

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