gocr-tk command not found

In this troubleshooting guide we learn how to fix gocr-tk command not found error message

Introduction

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

gocr-tk: command not found

or when using sudo you get the following error message

sudo: gocr-tk: command not found

Solutions to gocr-tk: command not found

How To Fix gocr-tk: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gocr-tk is provided by gocr-tk package.

gocr-tk is:

This is a multi-platform OCR (Optical Character Recognition) program.

It can read pnm, pbm, pgm, ppm, some pcx and tga image files.

It is a tlc/tk GUI to gocr (a command line program).

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

sudo apt-get -y install gocr-tk

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

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

sudo apt -y install gocr-tk

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

sudo aptitude install gocr-tk

Summary

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