rotp command not found

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

Introduction

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

rotp: command not found

or when using sudo you get the following error message

sudo: rotp: command not found

Solutions to rotp: command not found

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

In Ubuntu rotp is provided by ruby-rotp package.

ruby-rotp is:

A ruby library for generating one time passwords (HOTP & TOTP) according to RFC 4226 and RFC 6238. Works for both HOTP and TOTP, and includes QR Code provisioning.

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

sudo apt-get -y install ruby-rotp

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

You can also use apt command to install ruby-rotp.

sudo apt -y install ruby-rotp

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

sudo aptitude install ruby-rotp

Summary

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