pub2xhtml command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pub2xhtml: command not found
or when using sudo you get the following error message
sudo: pub2xhtml: command not found
Solutions to pub2xhtml: command not found
How To Fix pub2xhtml: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pub2xhtml is provided by libmspub-tools package.
libmspub-tools is:
Libmspub is library providing ability to interpret and import mspub diagrams into various applications.
This package contains pub2xhtml and pub2raw.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libmspub-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libmspub-tools.
sudo apt -y install libmspub-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install libmspub-tools
Summary
In this tutorial we learn how to fix pub2xhtml command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.