gscan2pdf command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gscan2pdf: command not found
or when using sudo you get the following error message
sudo: gscan2pdf: command not found
Solutions to gscan2pdf: command not found
How To Fix gscan2pdf: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gscan2pdf is provided by gscan2pdf package.
gscan2pdf is:
Only five clicks are required to scan several pages and then save all or a selection as a PDF or DjVu file, including metadata if required.
gscan2pdf can control flatbed or sheet-fed (ADF) scanners with SANE via libimage-sane-perl, scanimage or scanadf, and can scan multiple pages at once. It presents a thumbnail view of scanned pages, and permits simple operations such as cropping, rotating and deleting pages.
OCR can be used to recognise text in the scans, and the output embedded in the PDF or DjVu.
PDF conversion is done by PDF::Builder.
The resulting document may be saved as a PDF, DjVu, multipage TIFF file, or single page image file.
To fix this problem, we can install more using the command below.
sudo apt-get -y install gscan2pdf
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install gscan2pdf.
sudo apt -y install gscan2pdf
Or if you have aptitude installed you can use the following command.
sudo aptitude install gscan2pdf
Summary
In this tutorial we learn how to fix gscan2pdf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.