dune-git-whitespace-hook command not found

In this troubleshooting guide we learn how to fix dune-git-whitespace-hook command not found error message

Introduction

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

dune-git-whitespace-hook: command not found

or when using sudo you get the following error message

sudo: dune-git-whitespace-hook: command not found

Solutions to dune-git-whitespace-hook: command not found

How To Fix dune-git-whitespace-hook: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dune-git-whitespace-hook is provided by libdune-common-dev package.

libdune-common-dev is:

DUNE, the Distributed and Unified Numerics Environment is a modular toolbox for solving partial differential equations (PDEs) with grid-based methods. It supports the easy implementation of methods like Finite Elements (FE), Finite Volumes (FV), and also Finite Differences (FD).

This package contains the development files for the basic classes.

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

sudo apt-get -y install libdune-common-dev

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

You can also use apt command to install libdune-common-dev.

sudo apt -y install libdune-common-dev

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

sudo aptitude install libdune-common-dev

Summary

In this tutorial we learn how to fix dune-git-whitespace-hook command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.