xfig command not found

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

Introduction

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

xfig: command not found

or when using sudo you get the following error message

sudo: xfig: command not found

Solutions to xfig: command not found

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

In Ubuntu xfig is provided by xfig package.

xfig is:

XFig is a menu-driven tool that allows the user to draw and manipulate objects interactively in an X window. The resulting pictures can be saved. If the fig2dev program is installed, which is contained in the fig2dev package, the pictures can be printed on postscript printers or converted to a variety of other formats (e.g. to allow inclusion in LaTeX documents or web pages).

This package contains the xfig program itself.

You should think about installing the fig2dev package to export the graphics to several common formats. You should also think about installing xfig-doc, which contains the documentation and xfig-libs, which contains several clip art libraries.

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

sudo apt-get -y install xfig

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

You can also use apt command to install xfig.

sudo apt -y install xfig

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

sudo aptitude install xfig

Summary

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