update-catalog command not found

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

Introduction

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

update-catalog: command not found

or when using sudo you get the following error message

sudo: update-catalog: command not found

Solutions to update-catalog: command not found

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

In Ubuntu update-catalog is provided by sgml-base package.

sgml-base is:

This package creates the SGML infrastructure directories and provides SGML catalog file support in compliance with the current Debian SGML Policy draft:

  • infrastructure directories:

    • /etc/sgml
    • /usr/share/sgml/{declaration,dtd,entities,misc,stylesheet}
    • /usr/share/local/sgml/{declaration,dtd,entities,misc,stylesheet}
  • update-catalog(8): tool for maintaining the root SGML catalog file and the package SGML catalog files in the ‘/etc/sgml’ directory.

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

sudo apt-get -y install sgml-base

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

You can also use apt command to install sgml-base.

sudo apt -y install sgml-base

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

sudo aptitude install sgml-base

Summary

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