yubiserver command not found

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

Introduction

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

yubiserver: command not found

or when using sudo you get the following error message

sudo: yubiserver: command not found

Solutions to yubiserver: command not found

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

In Ubuntu yubiserver is provided by yubiserver package.

yubiserver is:

Simple and lightweight Yubikey OTP and HOTP/OATH validation server to be used with Yubico’s Yubikey USB tokens including a powerful administration tool, yubiserver-admin, with which you can manage yubiserver’s database by adding,deleting,activating and deactivating users that validate with OTP or HOTP/OATH tokens.

Yubiserver implements Yubico’s server side API and can be used with Yubikey USB tokens and any other client that can implement the same API.

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

sudo apt-get -y install yubiserver

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

You can also use apt command to install yubiserver.

sudo apt -y install yubiserver

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

sudo aptitude install yubiserver

Summary

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