Error Sudo: Add-Apt-Repository: Command Not Found

Error Sudo: Add-Apt-Repository: Command Not Found

I’m running Ubuntu 14.04. When I run:

sudo add-apt-repository ppa:ubuntu-wine/ppa

I get the following error:

sudo: add-apt-repository: command not found

I tried to run

sudo apt-get install software-properties-common

but it shows:

software-properties-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1

3 Answers

For Ubuntu 14.04 or later you need to install the software-properties-common package:

sudo apt install software-properties-common

I found the solution in this blog: Ubuntu Server 14.4 (Trusty Tahr) – add-apt-repository: command not found

1

If you are using an older release of Ubuntu, i.e. before 12.10, it is necessary to install the package python-software-properties.

sudo apt install python-software-properties
3

Run sudo apt-get update

Then sudo apt install software-properties-common -y

Now, you can use sudo add-apt-repository

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.