use travis_retry with apt-get commands

Avoid spurious failures on connectivity issues.