debpear command not found

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

Introduction

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

debpear: command not found

or when using sudo you get the following error message

sudo: debpear: command not found

Solutions to debpear: command not found

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

In Ubuntu debpear is provided by debpear package.

debpear is:

With debpear, you can install PEAR packages out of only the name of a PHP PEAR module. Debpear will download, create, and build a Debian package out of the pear package that you selected, and eventually install it in your system.

The goal of debpear isn’t to replace the real work of a Debian maintainer, but rather to allow its users to quickly build and install a PEAR package in a clean, Debian way, when this PEAR package doesn’t exist in Debian yet.

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

sudo apt-get -y install debpear

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

You can also use apt command to install debpear.

sudo apt -y install debpear

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

sudo aptitude install debpear

Summary

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