running apt-get update before we install curl

otherwise it can fail if the apt url was incorrect