fop command not found

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

Introduction

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

fop: command not found

or when using sudo you get the following error message

sudo: fop: command not found

Solutions to fop: command not found

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

In Ubuntu fop is provided by fop package.

fop is:

FOP is a Java application that reads a formatting object tree and then turns it into a wide variety of output presentations (including AFP, PCL, PDF, PNG, PostScript, RTF, TIFF, and plain text), or displays the result on-screen.

The formatting object tree can be in the form of an XML document (output by an XSLT engine like xalan) or can be passed in memory as a DOM Document or (in the case of xalan) SAX events.

This package contains the fop command line tool

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

sudo apt-get -y install fop

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

You can also use apt command to install fop.

sudo apt -y install fop

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

sudo aptitude install fop

Summary

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