dh_scour command not found

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

Introduction

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

dh_scour: command not found

or when using sudo you get the following error message

sudo: dh_scour: command not found

Solutions to dh_scour: command not found

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

In Ubuntu dh_scour is provided by scour package.

scour is:

Scour is a Python module that aggressively cleans SVG files, removing a lot of unnecessary information that certain tools or authors embed into their documents. The goal of scour is to provide an identically rendered image (i.e. a scoured document should have no discernible visible differences from the original file) while minimizing the file size.

WARNING: Scour is intended to be run on files that have been edited in Vector Graphics editors such as Inkscape or Adobe Illustrator. Scour attempts to optimize the file, and as result, it will change the file’s structure and (possibly) its semantics. If you have hand-edited your SVG files, you will probably not be happy with the output of Scour.

This package provides the “scour” command line utility and a dh_scour debhelper extension which optimizes all shipped SVGs during package build. If gir1.2-rsvg-2.0 and python3-gi-cairo are available, it will also do a before/after comparison and discard the optimized image if they differ by more than 0.05%.

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

sudo apt-get -y install scour

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

You can also use apt command to install scour.

sudo apt -y install scour

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

sudo aptitude install scour

Summary

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