Add Personal Package Archives (PPA) to the current repository in Ubuntu
add-apt-repository is a helper script which adds an external APT repository to either /etc/apt/sources.list or a file in /etc/apt/sources.list.d/. It can also import the keys needed.
To get this tool, just a single command:
# sudo apt-get install python-software-properties
That is it.