k2pdfopt command not found

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

Introduction

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

k2pdfopt: command not found

or when using sudo you get the following error message

sudo: k2pdfopt: command not found

Solutions to k2pdfopt: command not found

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

In Ubuntu k2pdfopt is provided by k2pdfopt package.

k2pdfopt is:

K2pdfopt optimizes PDF/DJVU files for mobile e-readers (e.g. the Kindle) and smartphones. It works well on multi-column PDF/DJVU files and can re-flow text even on scanned PDF files. It can also be used as a general PDF copying/ cropping/re-sizing/OCR-ing manipulation tool. It can generate native or bitmapped PDF output, with an optional OCR layer.

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

sudo apt-get -y install k2pdfopt

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

You can also use apt command to install k2pdfopt.

sudo apt -y install k2pdfopt

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

sudo aptitude install k2pdfopt

Summary

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