145

I want to install:

add-apt-repository ppa:ricotz/testin

It is showing:

The program add-apt-repository is currently not installed.
You can install it by typing:
sudo apt-get install python-software-properties

What should I do now?

dessert
  • 39,392
  • 12
  • 115
  • 163
Akankha Ahmed
  • 1,559
  • 2
  • 10
  • 3

1 Answers1

239

Try these:

sudo apt-get install software-properties-common

and/or

sudo apt-get install python3-software-properties

and/or

sudo apt-get install python-software-properties
the
  • 775
  • 1
  • 8
  • 16
sugab
  • 4,337
  • 4
  • 30
  • 48
  • sudo apt-get install python3-software-properties show this below Package python3-software-properties is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'python3-software-properties' has no installation candidate – Akankha Ahmed Jul 09 '14 at 06:27
  • sudo apt-get install software-properties-common. shows software-properties-common is already the newest version – Akankha Ahmed Jul 09 '14 at 06:28
  • it show when i try to install "add-apt-repository ppa:ricotz/testing " The program 'add-apt-repository' is currently not installed. You can install it by typing: apt-get install python-software-properties – Akankha Ahmed Jul 09 '14 at 06:32
  • Which Ubuntu version are you running? – Jos Jul 09 '14 at 07:19
  • 43
    `apt-get install software-properties-common` seems to be enough in Ubuntu 14.04. – qris May 27 '15 at 20:51
  • 16
    tested this on a docker image. `software-properties-common` and `python-software-properties` were required – Thamme Gowda Nov 24 '15 at 01:30
  • [`add-apt-repository`](http://manpages.ubuntu.com/manpages/xenial/en/man1/add-apt-repository.1.html) is provided by `software-properties-common` [see filelist](https://packages.debian.org/jessie/all/software-properties-common/filelist) – TarranJones Nov 03 '16 at 15:49
  • 1
    Tested on new Debian, also software-properties-common and python-software-properties were required – Ice09 Feb 28 '17 at 08:36
  • 3
    `ubuntu:latest` docker image gives `E: Unable to locate package software-properties-common` – Martin Thoma May 03 '18 at 11:07
  • 6
    If it's `Unable to locate package`, make sure to `apt-get update` first. – David Birks Jul 30 '18 at 20:15
  • In docker's `ubuntu:latest` works after `apt update` and installing `software-properties-common` – Madacol Apr 19 '21 at 21:58