Make sure local apt cache is up-to-date before installing anything

This makes sure that the ```apt-get install -y python-software-properties``` will not fail due outdated local apt cache.