git-clean-forge-repo command not found

In this troubleshooting guide we learn how to fix git-clean-forge-repo command not found error message

Introduction

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

git-clean-forge-repo: command not found

or when using sudo you get the following error message

sudo: git-clean-forge-repo: command not found

Solutions to git-clean-forge-repo: command not found

How To Fix git-clean-forge-repo: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu git-clean-forge-repo is provided by libapi-gitforge-perl package.

libapi-gitforge-perl is:

A git forge is a site like GitHub, GitLab etc. API::GitForge provides access to some operations which one might wish to perform against any git forge, wrapping the details of the APIs of particular forges. An example of such an operation is forking a repository into the user’s own namespace.

See the manpage for API::GitForge::Role::GitForge for details of all the currently supported operations.

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

sudo apt-get -y install libapi-gitforge-perl

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

You can also use apt command to install libapi-gitforge-perl.

sudo apt -y install libapi-gitforge-perl

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

sudo aptitude install libapi-gitforge-perl

Summary

In this tutorial we learn how to fix git-clean-forge-repo command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.