Add apt-get update before the script.