login_duo command not found

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

Introduction

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

login_duo: command not found

or when using sudo you get the following error message

sudo: login_duo: command not found

Solutions to login_duo: command not found

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

In Ubuntu login_duo is provided by login-duo package.

login-duo is:

This provides the login wrapper needed to interact with the Duo Security API for handling out-of-band two-factor authentication, mostly designed to be used along with global OpenSSH server configurations. Also includes manpage and configuration.

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

sudo apt-get -y install login-duo

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

You can also use apt command to install login-duo.

sudo apt -y install login-duo

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

sudo aptitude install login-duo

Summary

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