repo command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
repo: command not found
or when using sudo you get the following error message
sudo: repo: command not found
Solutions to repo: command not found
How To Fix repo: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu repo is provided by repo package.
repo is:
Repo is a repository management tool that the Android developers built on top of Git. Repo unifies the many Git repositories when necessary, does the uploads to the Android revision control system, and automates parts of the Android development workflow. Repo is not meant to replace Git, only to make it easier to work with Git in the context of Android. The repo command is an executable Python script that you can put anywhere in your path. In working with the Android source files, you will use Repo for across-network operations. For example, with a single Repo command you can download files from multiple repositories into your local working directory.
repo is an unusual tool because it downloads all of its own Python modules using GPG-signed git tags, and stores those files as part of the project that it is working with. So this package just provides the wrapper script, which provides the GPG signing keys for verifying that the correct Python code was downloaded.
To fix this problem, we can install more using the command below.
sudo apt-get -y install repo
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install repo.
sudo apt -y install repo
Or if you have aptitude installed you can use the following command.
sudo aptitude install repo
Summary
In this tutorial we learn how to fix repo command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.