rpc.yppasswdd command not found

In this troubleshooting guide we learn how to fix rpc.yppasswdd command not found error message

Introduction

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

rpc.yppasswdd: command not found

or when using sudo you get the following error message

sudo: rpc.yppasswdd: command not found

Solutions to rpc.yppasswdd: command not found

How To Fix rpc.yppasswdd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rpc.yppasswdd is provided by ypserv package.

ypserv is:

This package provides the ypserv and other programs, required to implement a NIS service for shared accounts and network names.

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 ypserv

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

You can also use apt command to install ypserv.

sudo apt -y install ypserv

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

sudo aptitude install ypserv

Summary

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