Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Debian stable (squeeze) and found this command add-apt-repository but it's not found when I try use it.

I'm sure I've used a command before which added a repo but I can't remember what it was.

share|improve this question
    
The answers are correct, but even better would have been if they had mentioned apt-file to help you help yourself in the future. In this case, you should have run apt-file search apt-add-repository to find the package which contains the command. – Daniel Andersson Mar 21 '12 at 8:01
up vote 2 down vote accepted

You can find the command apt-add-repository in Debian as well as Ubuntu. That command, or rather executable, is as the previous poster mentioned, in the python-software-properties package.

If you want to use the command on Debian, simply install the python-software-properties package this way;

 $ sudo apt-get update
 $ sudo apt-get install python-software-properties 

Then you'll be able to call the command this way;

$ add-apt-repository [OPTIONS] REPOSITORY
share|improve this answer
    
More on add-apt-repository at help.ubuntu.com/community/add-apt-repository: To add you need to follow the below syntax in your terminal: add-apt-repository 'deb uri distribution [component1] [component2] [...]' add-apt-repository ppa:<ppa_name> Examples: add-apt-repository 'deb packages.linuxmint.com julia main' add-apt-repository ppa:gnome-desktop – Toby Champion May 18 '11 at 17:02
2  
I just did this and add-apt-repository is still not there – knocte Jan 30 '13 at 11:15

This command is contained in package python-software-properties.

Maybe you used this command in ubuntu (it's preinstalled in ubuntu karmic)?

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .