pic2tpic command not found

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

Introduction

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

pic2tpic: command not found

or when using sudo you get the following error message

sudo: pic2tpic: command not found

Solutions to pic2tpic: command not found

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

In Ubuntu pic2tpic is provided by fig2dev package.

fig2dev is:

This package contains utilities (mainly fig2dev) to handle XFig (Facility for Interactive Generation of figures) files.

It can convert files produced by xfig to box, cgm, dxf, epic, eepic, eepicemu, emf, eps, gbx (Gerber beta driver), gif, ibmgl, jpeg, latex, map (HTML image map), mf (MetaFont), mp (MetaPost), pcx, pdf, pdftex, pdftex_t, pic, pict2e, pictex, png, ppm, ps, pstex, pstex_t, pstricks, ptk (Perl/Tk), shape (LaTeX shaped paragraphs), sld (AutoCad slide format), svg, textyl, tiff, tikz, tk (Tcl/Tk), tpic, xbm and xpm.

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

sudo apt-get -y install fig2dev

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

You can also use apt command to install fig2dev.

sudo apt -y install fig2dev

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

sudo aptitude install fig2dev

Summary

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