ypchfn command not found

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

Introduction

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

ypchfn: command not found

or when using sudo you get the following error message

sudo: ypchfn: command not found

Solutions to ypchfn: command not found

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

In Ubuntu ypchfn is provided by yp-tools package.

yp-tools is:

This package provides a number of tools for working with NIS installations including ypset, ypwhich, ypcat, ypmatch, yppoll, ypchfn, ypchsh and yppasswd.

NIS, originally known as Yellow Pages (YP), is mostly used to let several machines in a network share the same account information, such as the password file. It is an old, but simple system to share information, which should be used only in relatively trusted networks, due to its intrinsic limitations for security.

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

sudo apt-get -y install yp-tools

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

You can also use apt command to install yp-tools.

sudo apt -y install yp-tools

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

sudo aptitude install yp-tools

Summary

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