gbp command not found

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

Introduction

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

gbp: command not found

or when using sudo you get the following error message

sudo: gbp: command not found

Solutions to gbp: command not found

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

In Ubuntu gbp is provided by git-buildpackage package.

git-buildpackage is:

This package contains the following tools:

  • gbp buildpackage: build a package out of a Git repository, check for local modifications and tag appropriately
  • gbp import-orig: import a new upstream version into the Git repository
  • gbp export-orig: export an upstream tarball from the Git repository
  • gbp import-{dsc,dscs}: import existing Debian source packages into a Git repository
  • gbp dch: generate Debian changelog entries from Git commit messages
  • gbp {pull,clone}: clone and pull from remote repos
  • gbp pq: manage debian/patches easily
  • gbp create-remote-repo: create remote repositories
  • gbp push: push content to remote repositories
  • gbp tag: tag a Debian package in Git
  • gbp pristine-tar: create pristine-tar commits
  • gbp setup-gitattributes: set up Git attributes to disable transformations

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

sudo apt-get -y install git-buildpackage

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

You can also use apt command to install git-buildpackage.

sudo apt -y install git-buildpackage

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

sudo aptitude install git-buildpackage

Summary

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