update-xmlcatalog command not found

In this troubleshooting guide we learn how to fix update-xmlcatalog command not found error message

Introduction

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

update-xmlcatalog: command not found

or when using sudo you get the following error message

sudo: update-xmlcatalog: command not found

Solutions to update-xmlcatalog: command not found

How To Fix update-xmlcatalog: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu update-xmlcatalog 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 update-xmlcatalog command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.