pod2xhtml command not found

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

Introduction

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

pod2xhtml: command not found

or when using sudo you get the following error message

sudo: pod2xhtml: command not found

Solutions to pod2xhtml: command not found

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

In Ubuntu pod2xhtml is provided by libpod-xhtml-perl package.

libpod-xhtml-perl is:

There’s Pod::PXML and Pod::XML, so why is Pod::Xhtml needed? You need an XSLT to transform XML into XHTML and many people don’t have the time or inclination to do this. But they want to make sure that the pages they put on their web site are well-formed, they want those pages to use stylesheets easily, and possibly they want to squirt the XHTML through some kind of filter for more processing.

By generating well-formed XHTML straight away anyone can just use the output files as-is. For those who want to use XML tools or transformations they can use the XHTML as a source, because it’s a well-formed XML document.

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

sudo apt-get -y install libpod-xhtml-perl

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

You can also use apt command to install libpod-xhtml-perl.

sudo apt -y install libpod-xhtml-perl

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

sudo aptitude install libpod-xhtml-perl

Summary

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