Reccurrent random build failures due to timeouts in apt-add-repository

I observed repeated and frequent (but not systematic) errors today with the following timeout when adding a repository:

Adding APT Sources
$ sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
gpg: keyring `/tmp/tmpogcdm68q/secring.gpg' created
gpg: keyring `/tmp/tmpogcdm68q/pubring.gpg' created
gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
Error: retrieving gpg key timed out.
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
The command "sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"" failed and exited with 1 during .
Your build has been stopped.

Travis was having quite the day yesterday, seemed like. It cleared up, though, at least for us. Just like it always does, when we’re seeing symptoms related to their apt support.

At this point when it starts happening, I don’t even bother reacting to it. I just shrug and say, “It’ll be fine in a few hours” and it always is. Gives me a chance to focus on other things for a bit. :smile:

Are you still having problems?

Imprint