scan-copyrights command not found

In this troubleshooting guide we learn how to fix scan-copyrights command not found error message

Introduction

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

scan-copyrights: command not found

or when using sudo you get the following error message

sudo: scan-copyrights: command not found

Solutions to scan-copyrights: command not found

How To Fix scan-copyrights: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu scan-copyrights is provided by libconfig-model-dpkg-perl package.

libconfig-model-dpkg-perl is:

This package provides Config::Model::Dpkg, a plugin for Config::Model and cme. Once this package is installed, cme is able to handle dpkg source file.

For instance, the command ‘cme edit dpkg’ provides a graphical editor for most files of a package source.

The command ‘cme check dpkg’ provide a command line that will check the package file, a bit like lintian. But this command must be run in the source package directory and can be run before building the package.

Likewise, the command ‘cme fix dpkg’ will fix most of the warnings found by the command above.

The command ‘cme update dpkg’ will update debian/copyright file from the content of the package source file.

If the recommended package libconfig-model-tkui-perl is installed, you can run ‘cme edit dpkg’ to edit your package files with a GUI.

You can also run cme with a more restricted scope with:

  • cme edit|check|fix dpkg-control
  • cme edit|check|fix dpkg-copyright

For best results, you should install the latest available version of libmodule-corelist-perl.

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

sudo apt-get -y install libconfig-model-dpkg-perl

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

You can also use apt command to install libconfig-model-dpkg-perl.

sudo apt -y install libconfig-model-dpkg-perl

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

sudo aptitude install libconfig-model-dpkg-perl

Summary

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