make-jpkg command not found

In this troubleshooting guide we learn how to fix make-jpkg command not found error message

Introduction

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

make-jpkg: command not found

or when using sudo you get the following error message

sudo: make-jpkg: command not found

Solutions to make-jpkg: command not found

How To Fix make-jpkg: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu make-jpkg is provided by java-package package.

java-package is:

This package provides the capability to build a Debian package from a Java binary distribution by running make-jpkg . (with archive files downloaded from providers listed below)

Supported java binary distributions currently include:

Please note that Debian recommends the use of openjdk-[78]-jdk and/or openjdk-[78]-jre, which are installed by default-jdk or default-jre for most architectures.

java-package will create non-free packages.

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

sudo apt-get -y install java-package

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

You can also use apt command to install java-package.

sudo apt -y install java-package

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

sudo aptitude install java-package

Summary

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