pfni command not found

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

Introduction

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

pfni: command not found

or when using sudo you get the following error message

sudo: pfni: command not found

Solutions to pfni: command not found

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

In Ubuntu pfni is provided by adacontrol package.

adacontrol is:

AdaControl verifies that Ada software meets the requirements of a number of parameterizable rules. It is not intended to supplement checks made by the compiler, but rather to search for particular violations of good-practice rules, or to check that some rules are obeyed project-wide.

This package also contains the following utilities:

  • pfni: Print Full Name Image - expands any identifier to a fully-qualified name
  • ptree: Prints a graphic representation of an ASIS tree with corresponding source
  • adactl_fix: automatically fix some violations.

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

sudo apt-get -y install adacontrol

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

You can also use apt command to install adacontrol.

sudo apt -y install adacontrol

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

sudo aptitude install adacontrol

Summary

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