update-perl-sax-parsers command not found

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

Introduction

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

update-perl-sax-parsers: command not found

or when using sudo you get the following error message

sudo: update-perl-sax-parsers: command not found

Solutions to update-perl-sax-parsers: command not found

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

In Ubuntu update-perl-sax-parsers is provided by libxml-sax-perl package.

libxml-sax-perl is:

XML::SAX consists of several framework classes for using and building Perl SAX2 XML parsers, filters, and drivers. It is designed around the need to be able to “plug in” different SAX parsers to an application without requiring programmer intervention. Those of you familiar with the DBI will be right at home. Some of the designs come from the Java JAXP specification (SAX part), only without the javaness.

The package also contains a SAX parser, XML::SAX::PurePerl, but it is considered too slow for serious use and is only provided as a fallback parser. It is recommend XML::SAX::Expat (provided in libxml-sax-expat-perl) instead.

The framework includes a Debian-specific script (called update-perl-sax-parsers) to manage the ParserDetails.ini file. This script is intended to be used in postinst and prerm package scripts to (de)register parsers. See README.Debian for more info.

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

sudo apt-get -y install libxml-sax-perl

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

You can also use apt command to install libxml-sax-perl.

sudo apt -y install libxml-sax-perl

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

sudo aptitude install libxml-sax-perl

Summary

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