This question already has an answer here:

When I run:

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

Log here:

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.

marked as duplicate by Marco Ceppi Nov 10 '15 at 3:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Which version of Ubuntu are you using? – Florian Diesch Mar 6 '15 at 12:18
  • my ubuntu is 14.04 .. – Nhóc Emi Mar 6 '15 at 12:24
  • 2
    Two things: 1. What's the output of echo $PATH? 2. Try reinstalling: sudo apt-get install --reinstall software-properties-common. – muru Mar 6 '15 at 12:41
  • I have the same problem with Lubuntu 18.10. – Ben Nov 1 at 9:12

For Ubuntu 14.04 or 16.04 you need another package:

apt-get install software-properties-common

I found the solution in this blog: https://pricklytech.wordpress.com/2014/05/16/ubuntu-server-14-4-trusty-add-apt-repository-command-not-found/

  • Is this only applicable to Ubuntu? 'Cuz on Debian I get an error: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 167, in <module> sp = SoftwareProperties(options=options) – Igor G. Apr 17 '16 at 23:42
  • Also works on elementary os – P.Brian.Mackey May 15 '17 at 2:46

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

sudo apt-get install python-software-properties
  • i'm using 14.04 :( – Nhóc Emi Mar 6 '15 at 12:25
  • @NhócEmi: try this: sudo apt-get install software-properties-common – Justin Mar 8 '17 at 4:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.