ident2 command not found

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

Introduction

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

ident2: command not found

or when using sudo you get the following error message

sudo: ident2: command not found

Solutions to ident2: command not found

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

In Ubuntu ident2 is provided by ident2 package.

ident2 is:

ident2 is an advanced, configurable ident daemon. You can set it to lie, not lie, or not return any response at all, and it is per-user configurable (e.g. if user daniel was IRCing, it’d use ~daniel/.ident for its config, if user kim was IRCing, it’d use ~kim/.ident). The admin can specify whether users can configure the type of return they want or not.

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

sudo apt-get -y install ident2

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

You can also use apt command to install ident2.

sudo apt -y install ident2

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

sudo aptitude install ident2

Summary

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