Run apt-get update as needed, and install add-apt-repository if needed.