How to Fix Error sudo: add-apt-repository: command not found

Whenever you get the error “add-apt-repository: command not found” when  adding  a PPA  you can follow the instructions below to fix the error

To fix this error, you have to install the software-properties-common:

$ sudo apt-get install software-properties-common

This is all. Now your command for adding PPAs works like a charm.

If you want to find out how I have fixed this error by myself, without external / Google help, read further.

I have search with apt-file for the add-apt-repository and found out in which package is the command located. Apt file searches for files, inside packages and tells you in what package the file you had searched is located.

It is not installed by default, so you need to do this:

$ sudo apt-get install apt-file && apt-file update

This is how you use apt-file for fishing files inside packages:

$ apt-file search add-apt-repository
python-software-properties: /usr/bin/add-apt-repository
python-software-properties

Password Reset
Please enter your e-mail address. You will receive a new password via e-mail.

Power by

Download Free AZ | Free Wordpress Themes