gocr command not found

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

Introduction

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

gocr: command not found

or when using sudo you get the following error message

sudo: gocr: command not found

Solutions to gocr: command not found

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

In Ubuntu gocr is provided by gocr package.

gocr is:

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

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

Currently the program should be able to handle well scans that have their text in one column and do not have tables. Font sizes of 20 to 60 pixels are supported.

If you want to write your own OCR, libgocr is provided in a separate package. Documentation and graphical wrapper are provided in separated packages, too.

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

sudo apt-get -y install gocr

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

You can also use apt command to install gocr.

sudo apt -y install gocr

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

sudo aptitude install gocr

Summary

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