tkjpeg command not found

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

Introduction

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

tkjpeg: command not found

or when using sudo you get the following error message

sudo: tkjpeg: command not found

Solutions to tkjpeg: command not found

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

In Ubuntu tkjpeg is provided by perl-tk package.

perl-tk is:

Perl/Tk (also known as pTk or ptk) is a collection of modules and code that attempts to wed the easily configured Tk widget toolkit to the powerful lexigraphic, dynamic memory, I/O, and object-oriented capabilities of Perl 5. In other words, it is an interpreted scripting language for making widgets and programs with Graphical User Interfaces (GUI).

A good place to get started is by running the “widget” demo that’s installed with this package.

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

sudo apt-get -y install perl-tk

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

You can also use apt command to install perl-tk.

sudo apt -y install perl-tk

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

sudo aptitude install perl-tk

Summary

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