xpstojpeg command not found

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

Introduction

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

xpstojpeg: command not found

or when using sudo you get the following error message

sudo: xpstojpeg: command not found

Solutions to xpstojpeg: command not found

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

In Ubuntu xpstojpeg is provided by libgxps-utils package.

libgxps-utils is:

OpenXPS or XPS stands for XML Paper Specification. It is based on XML and it’s a new electronic paper format originally developed by Microsoft and it serves as a PDF alternative. XPS files are usually created using “Microsoft XPS Document Writer” in Windows environments. It is now standardized as an open standard document format.

Quoting Wikipedia: An XPS file is in fact a Unicoded ZIP archive using the Open Packaging Conventions, containing the files which make up the document. These include an XML markup file for each page, text, embedded fonts, raster images, 2D vector graphics, as well as the digital rights management information. The contents of an XPS file can be examined simply by opening it in an application which supports ZIP files.

The OpenXPS document format specification supports features such as color gradients, transparencies, CMYK color spaces, printer calibration, multiple-ink systems and print schemas.

This package contains the binary utilities: xpstopng, xpstopdf, xpstosvg, xpstojpeg and xpstops

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

sudo apt-get -y install libgxps-utils

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

You can also use apt command to install libgxps-utils.

sudo apt -y install libgxps-utils

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

sudo aptitude install libgxps-utils

Summary

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