debuild-pbuilder command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
debuild-pbuilder: command not found
or when using sudo you get the following error message
sudo: debuild-pbuilder: command not found
Solutions to debuild-pbuilder: command not found
How To Fix debuild-pbuilder: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu debuild-pbuilder is provided by pbuilder package.
pbuilder is:
pbuilder constructs a chroot system, and builds a package inside the chroot. It is an ideal system to use to check that a package has correct build-dependencies. It uses apt extensively, and a local mirror, or a fast connection to a Debian mirror is ideal, but not necessary.
“pbuilder create” uses debootstrap to create a chroot image.
“pbuilder update” updates the image to the current state of testing/unstable/whatever
“pbuilder build” takes a *.dsc file and builds a binary in the chroot image.
pdebuild is a wrapper for Debian Developers, to allow running pbuilder just like “debuild”, as a normal user.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pbuilder
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pbuilder.
sudo apt -y install pbuilder
Or if you have aptitude installed you can use the following command.
sudo aptitude install pbuilder
Summary
In this tutorial we learn how to fix debuild-pbuilder command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.