first do this:
apt-get install python-software-properties
and after install add-apt-repository should work