Apt addon with configured timeouts fails

Hi,

apt addons fails installing new packages even though there are retries enabled. Here is the config part:

addons:
  apt:
    config:
      retries: true
    update: true
    packages:
      - python-virtualenv
      - libpcap-dev
      - xsltproc
      - libxml2-utils
      - libsystemd-journal-dev
      - librpm-dev

Errors:

W: GPG error: https://packagecloud.io/github/git-lfs/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
W: The repository 'https://packagecloud.io/github/git-lfs/ubuntu trusty InRelease' is not signed.
W: There is no public key available for the following key IDs:
W: The repository 'http://www.apache.org/dist/cassandra/debian 39x Release' does not have a Release file.
W: http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/trusty/Release.gpg: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
W: The repository 'http://ppa.launchpad.net/pollinate/ppa/ubuntu trusty Release' is not signed.
W: The repository 'http://us-east-1.ec2.archive.ubuntu.com/ubuntu trusty Release' is not signed.
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/source/Sources Connection failed
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty-backports/multiverse/binary-amd64/Packages Connection failed
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty-backports/multiverse/i18n/Translation-en Could not connect to build-cache.travisci.net:80 (10.80.1.2), connection timed out
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Unable to connect to build-cache.travisci.net:http:
E: Failed to fetch http://ppa.launchpad.net/pollinate/ppa/ubuntu/dists/trusty/Release.gpg Connection failed
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources Unable to connect to build-cache.travisci.net:http:
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/restricted/source/Sources Unable to connect to build-cache.travisci.net:http:
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/universe/source/Sources Unable to connect to build-cache.travisci.net:http:
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/multiverse/source/Sources Unable to connect to build-cache.travisci.net:http:
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages Unable to connect to build-cache.travisci.net:http:
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-i386/Packages Unable to connect to build-cache.travisci.net:http:
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/restricted/binary-amd64/Packages Unable to connect to build-cache.travisci.net:http:
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/restricted/binary-i386/Packages Unable to connect to build-cache.travisci.net:http:
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-amd64/Packages Unable to connect to build-cache.travisci.net:http:
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-i386/Packages Unable to connect to build-cache.travisci.net:http:
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/multiverse/binary-amd64/Packages Unable to connect to build-cache.travisci.net:http:

Build link: https://travis-ci.org/elastic/beats/jobs/627210281?utm_medium=notification&utm_source=github_status

Any ideas?

Using dist: xenial should fix this issue. Thanks.