Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to install apt-add-repository on Ubuntu 14.04.

sudo apt-get install add-apt-repository
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package add-apt-repository

I have also tried installing python-software-properties

sudo apt-get install python-software-properties

However, it still is missing... does anyone know where this package has gone?

share|improve this question

closed as unclear what you're asking by i08in, Warren Hill, Ask, Danatela, BuZZ-dEE Apr 14 at 16:47

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

    
sudo apt-get update? Your second command should work. –  saiarcot895 Apr 9 at 16:15
2  
Why are you trying to install it? add-apt-repository isn't a package and never was. –  Seth Apr 9 at 16:16

1 Answer 1

add-apt-repository is not a package, so you just can't install it using sudo apt-get install add-apt-repository. This is wrong!

The package which contain add-apt-repository command is (and was all the time):

software-properties-common

not python-software-properties as you may think. You can check this using the following command:

dpkg -S add-apt-repository
share|improve this answer
    
This is wrong, add-apt-repository is not in software-properties-common in precise: packages.ubuntu.com/precise/all/software-properties-common/… - it is in packages.ubuntu.com/precise/all/python-software-properties/… –  effhaa Jul 26 at 13:07
    
@effhaa Please read the question more carefully and then say what is wrong and what not. The OP is using 14.04, not 12.04 (Precise). Thank you! –  Radu Rădeanu Jul 26 at 16:44
    
I know, should have phrased my comment more careful. Sorry about that. What I meant is that your claim this was all the time in software-properties-common - which is wrong. This is new with trusty, and has been different before. –  effhaa Jul 28 at 6:18
    
I specified in my answer that a check can be done using dpkg -S add-apt-repository command. And this is new with raring, not with trusty. –  Radu Rădeanu Jul 28 at 8:35

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