Unable to locate package add-apt-repository error [closed]

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?

2

1 Answer

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
7

You Might Also Like