build-and-provide-package command not found

In this troubleshooting guide we learn how to fix build-and-provide-package command not found error message

Introduction

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

build-and-provide-package: command not found

or when using sudo you get the following error message

sudo: build-and-provide-package: command not found

Solutions to build-and-provide-package: command not found

How To Fix build-and-provide-package: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu build-and-provide-package is provided by jenkins-debian-glue package.

jenkins-debian-glue is:

This package provides scripts which make building Debian packages inside Jenkins (a Continuous Integration suite) easier.

It’s meant to make Q/A builds of Debian packages inside Jenkins as manageable and homogeneous as possible.

You need to install the according packaging tools, depending on your VCS type and the features you want to use. To get all tools you can just install the jenkins-debian-glue-buildenv package.

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

sudo apt-get -y install jenkins-debian-glue

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

You can also use apt command to install jenkins-debian-glue.

sudo apt -y install jenkins-debian-glue

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

sudo aptitude install jenkins-debian-glue

Summary

In this tutorial we learn how to fix build-and-provide-package command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.