How to fix in Debian 8 (Jessie) and higher
apt-get -y install python-software-properties
How to fix in Debian 7 (Wheezy) and lower
apt-get -y install software-properties-common
apt-get -y install python-software-properties
apt-get -y install software-properties-common