dh_octave_clean command not found

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

Introduction

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

dh_octave_clean: command not found

or when using sudo you get the following error message

sudo: dh_octave_clean: command not found

Solutions to dh_octave_clean: command not found

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

In Ubuntu dh_octave_clean is provided by dh-octave package.

dh-octave is:

Since version 3.0 of Octave (a numerical computation software), add-ons can be installed through the pkg.m system. This package provides the infrastructure for packaging such add-ons for Debian, based on debhelper. It replaces the deprecated octave-pkg-dev package. This package contains debhelper-like scripts for building, checking and cleaning the add-on package as well as for generating the substitution variables in debian/control.

This package is intended to be used by the Debian Octave Group and should be of little interest to general users.

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

sudo apt-get -y install dh-octave

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

You can also use apt command to install dh-octave.

sudo apt -y install dh-octave

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

sudo aptitude install dh-octave

Summary

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