epubcheck command not found

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

Introduction

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

epubcheck: command not found

or when using sudo you get the following error message

sudo: epubcheck: command not found

Solutions to epubcheck: command not found

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

In Ubuntu epubcheck is provided by epubcheck package.

epubcheck is:

EpubCheck is a tool to validate IDPF EPUB files. It can detect many types of errors in EPUB. OCF container structure, OPF and OPS mark-up, and internal reference consistency are checked. EpubCheck can be run as a standalone command-line tool, installed as a Java server-side web application or used as a Java library.

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

sudo apt-get -y install epubcheck

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

You can also use apt command to install epubcheck.

sudo apt -y install epubcheck

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

sudo aptitude install epubcheck

Summary

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