How to Solve “add-apt-repository: command not found” Problem

The add-apt-repository command is part of package software-properties-common so we need to install this package:

sudo apt-get install software-properties-common
sudo apt-get update