289

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.
Nhóc Emi
  • 2,891
  • 1
    This is an old post, and maybe the OP no longer cares! However did you try sudo apt install software-properties-common --reinstall? – Swarnendu Biswas May 17 '19 at 10:05

3 Answers3

443

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

Kulfy
  • 18,163
Daniel
  • 4,531
  • 1
  • 12
  • 4
  • That worked for me as well on Debian but only after running "apt-get update" could I install any new ppas. – Hagbard Jan 13 '21 at 15:29
47

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
Kulfy
  • 18,163
2

Run sudo apt-get update

Then sudo apt install software-properties-common -y

Now, you can use sudo add-apt-repository

  • This is just a dup of the other answer - https://askubuntu.com/a/639431/17531 – slm Jun 28 '25 at 16:30
  • Runing sudo apt install software-properties-common -y right away didn't work for me, that's why I mentioned running sudo apt-get update first. – Mostafa Wael Jul 03 '25 at 03:36
  • If you are talking about dups, then https://askubuntu.com/a/593437/1176062 is an obvious dup, not this answer – Mostafa Wael Jul 03 '25 at 03:37