okular command not found

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

Introduction

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

okular: command not found

or when using sudo you get the following error message

sudo: okular: command not found

Solutions to okular: command not found

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

In Ubuntu okular is provided by okular package.

okular is:

Okular is a universal document viewer with support for advanced document features, such as annotations, forms, and embedded files.

This package provides the document viewer application, plus plugins for a wide variety of document formats such as:

  • PostScript (PS)
  • Portable Document Format (PDF)
  • TeX Device independent file format (DVI)
  • XML Paper Specification (XPS)
  • G3 fax
  • various electronic book formats: ComicBook, FictionBook, and Plucker

Additional document formats are in the okular-extra-backends package.

The Calligra suite provides Okular plugins for OpenDocument formats that can be found in the okular-backend-odt and okular-backend-odp packages.

This package is part of the KDE graphics module.

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

sudo apt-get -y install okular

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

You can also use apt command to install okular.

sudo apt -y install okular

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

sudo aptitude install okular

Summary

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