add-apt-repository command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
add-apt-repository: command not found
or when using sudo you get the following error message
sudo: add-apt-repository: command not found
Solutions to add-apt-repository: command not found
How To Fix add-apt-repository: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu add-apt-repository is provided by software-properties-common package.
software-properties-common is:
This software provides an abstraction of the used apt repositories. It allows you to easily manage your distribution and independent software vendor software sources.
This package contains the common files for software-properties like the D-Bus backend.
To fix this problem, we can install more using the command below.
sudo apt-get -y install software-properties-common
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install software-properties-common.
sudo apt -y install software-properties-common
Or if you have aptitude installed you can use the following command.
sudo aptitude install software-properties-common
Summary
In this tutorial we learn how to fix add-apt-repository command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.