policy-rc.d.fai command not found

In this troubleshooting guide we learn how to fix policy-rc.d.fai command not found error message

Introduction

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

policy-rc.d.fai: command not found

or when using sudo you get the following error message

sudo: policy-rc.d.fai: command not found

Solutions to policy-rc.d.fai: command not found

How To Fix policy-rc.d.fai: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu policy-rc.d.fai is provided by fai-nfsroot package.

fai-nfsroot is:

FAI is a non-interactive system to install, customize and manage Linux systems and software configurations on computers as well as virtual machines and chroot environments, from small networks to large infrastructures and clusters.

This package contains the software that is only needed in the FAI nfsroot. Do not install this package on a normal machine.

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

sudo apt-get -y install fai-nfsroot

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

You can also use apt command to install fai-nfsroot.

sudo apt -y install fai-nfsroot

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

sudo aptitude install fai-nfsroot

Summary

In this tutorial we learn how to fix policy-rc.d.fai command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.