First of all, install software-properties-common

For apt-add-repository