DOMCount command not found

In this troubleshooting guide we learn how to fix DOMCount command not found error message

Introduction

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

DOMCount: command not found

or when using sudo you get the following error message

sudo: DOMCount: command not found

Solutions to DOMCount: command not found

How To Fix DOMCount: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu DOMCount is provided by libxerces-c-samples package.

libxerces-c-samples is:

Xerces-C++ is a validating XML parser written in a portable subset of C++. This package contains compiled versions of the samples. You probably don’t want this package, but it can be useful if you are trying to reproduce a problem before reporting a bug that will be easy for the xerces developers to reproduce.

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

sudo apt-get -y install libxerces-c-samples

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

You can also use apt command to install libxerces-c-samples.

sudo apt -y install libxerces-c-samples

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

sudo aptitude install libxerces-c-samples

Summary

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