Bugfix for previous pull request

apt-get update is needed for apt-get to get the right url for software-properties-common
software-properties-common is required for apt-add-repository.