GPG errors with ubuntugis

I am trying to set up an environment that contains ubuntugis and I get a GPG Error for two repositories: ‘http://dl.google.com/linux/chrome/deb stable InRelease’ and ‘https://packagecloud.io/github/git-lfs/ubuntu trusty InRelease’.

The .travis.yml looks as follows

# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

language: R
sudo: required
cache: packages
warnings_are_errors: true
dist: trusty
r:
  - release
  - devel

before_install:
  - sudo add-apt-repository ppa:ubuntugis/ppa --yes
  - sudo apt-get --yes --force-yes update -qq
  - sudo apt-get install --yes libudunits2-dev libproj-dev libgeos-dev libgdal-dev
  - Rscript -e 'install.packages("rgdal", repos="https://r-forge.r-project.org/")'

after_success:
  - Rscript -e 'covr::codecov()'

and the exact error messsage is the following:

$ sudo add-apt-repository ppa:ubuntugis/ppa --yes
$ sudo apt-get --yes --force-yes update -qq
W: GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
W: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed.
W: There is no public key available for the following key IDs: 78BD65473CB3BD13  
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: 6B05F25D762E3157  
W: http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/trusty/Release.gpg: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
W: http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/trusty/Release.gpg: Signature by key 1EC6DBC9AA41BD34B32CC5A15C50E96D8EFE5982 uses weak digest algorithm (SHA1)
W: The repository 'http://ppa.launchpad.net/marutter/rrutter4.0/ubuntu trusty Release' does not have a Release file.
E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter4.0/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter4.0/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command "sudo apt-get --yes --force-yes update -qq" failed and exited with 100 during .

Does this require adding the keys to the docker image? @jeroen, @jimhester

You need to remove dist: trusty from your .travis.yml file. This is an old version of Ubuntu that is EOL and no longer supported by PPAs.

Thanks for the quick response and it did fix the problem!