dh_installxmlcatalogs command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dh_installxmlcatalogs: command not found
or when using sudo you get the following error message
sudo: dh_installxmlcatalogs: command not found
Solutions to dh_installxmlcatalogs: command not found
How To Fix dh_installxmlcatalogs: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dh_installxmlcatalogs is provided by xml-core package.
xml-core is:
This package creates the XML infrastructure directories and provides XML catalog file support in compliance with the current Debian XML Policy draft:
infrastructure directories:
- /etc/xml
- /usr/share/xml/{declaration,entities,misc,schema}
- /usr/local/share/xml/{declaration,entities,misc,schema}
XML catalog schema: OASIS XML Catalog Committee Specification 1.0
update-xmlcatalog(8): tool for maintaining the root XML catalog file and the package XML catalog files in the ‘/etc/xml’ directory as well as local XML catalog files.
dh_installxmlcatalogs(1): debhelper tool for installing local XML catalog files and registering XML entities in package XML catalog files and the root XML catalog file (requires debhelper package)
To fix this problem, we can install more using the command below.
sudo apt-get -y install xml-core
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xml-core.
sudo apt -y install xml-core
Or if you have aptitude installed you can use the following command.
sudo aptitude install xml-core
Summary
In this tutorial we learn how to fix dh_installxmlcatalogs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.