Retry apt-get update until it succeeds