Packages cannot be authenticated. GPG error google-chrome-stable

Hi, I’m run in the following error, but i have no idea how to configure my travis.yml to obtain the right key for the apt-command. Here is my Logfile:

Worker information
hostname: e1f0e684-770d-4f26-bf6b-e3e50dbfea12@1.production-1-worker-org-gce-cht2
version: v6.2.0
instance: travis-job-da742a45-2548-43b3-8718-c449015cb005 travis-ci-sardonyx-xenial-1553530528-f909ac5 (via amqp)
startup: 6.594950058s
Build system information
Build language: python
Build group: stable
Build dist: xenial
Build id: 519162760
Job id: 519162765
Runtime kernel version: 4.15.0-1028-gcp
travis-build version: 9b2b201a2
Build image provisioning date and time
Mon Mar 25 16:43:24 UTC 2019
Operating System Details
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.6 LTS
Release:	16.04
Codename:	xenial
Systemd Version
systemd 229
Cookbooks Version
git version
git version 2.21.0
bash version
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
gcc version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
docker version
 Version:           18.06.0-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        0ffa825
 Built:             Wed Jul 18 19:11:02 2018
 OS/Arch:           linux/amd64
 Experimental:      false
  Version:          18.06.0-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       0ffa825
  Built:            Wed Jul 18 19:09:05 2018
  OS/Arch:          linux/amd64
  Experimental:     false
clang version
clang version 7.0.0 (tags/RELEASE_700/final)
jq version
bats version
Bats 0.4.0
shellcheck version
shfmt version
ccache version
cmake version
cmake version 3.12.4
heroku version
heroku/7.22.7 linux-x64 node-v11.10.1
imagemagick version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2018-09-28
md5deep version
mercurial version
version 4.8
mysql version
mysql  Ver 14.14 Distrib 5.7.25, for Linux (x86_64) using  EditLine wrapper
openssl version
OpenSSL 1.0.2g  1 Mar 2016
packer version
postgresql client version
psql (PostgreSQL) 10.7 (Ubuntu 10.7-1.pgdg16.04+1)
ragel version
Ragel State Machine Compiler version 6.8 Feb 2013
sudo version
gzip version
gzip 1.6
zip version
Zip 3.0
vim version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
iptables version
iptables v1.6.0
curl version
curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
wget version
GNU Wget 1.17.1 built on linux-gnu.
rsync version
rsync  version 3.1.1  protocol version 31
gimme version
nvm version
perlbrew version
/home/travis/perl5/perlbrew/bin/perlbrew  - App::perlbrew/0.86
phpenv version
rbenv 1.1.2
rvm version
rvm 1.29.7 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin []
default ruby version
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
CouchDB version
couchdb 1.6.1
ElasticSearch version
Installed Firefox version
firefox 63.0.1
MongoDB version
MongoDB 4.0.7
PhantomJS version
Pre-installed PostgreSQL versions
Redis version
redis-server 5.0.4
Pre-installed Go versions
mvn version
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T18:41:47Z)
gradle version
Gradle 4.10.2!
lein version
Leiningen 2.9.1 on Java 11.0.2 OpenJDK 64-Bit Server VM
Pre-installed Node.js versions
phpenv versions
* 7.2.15 (set by /home/travis/.phpenv/version)
composer --version
Composer version 1.8.4 2019-02-11 10:52:10
Pre-installed Ruby versions
Adding APT Sources
0.45s$ curl -sSL "" | sudo -E apt-key add -
0.01s$ echo "deb [arch=amd64] stable main" | sudo tee -a ${TRAVIS_ROOT}/etc/apt/sources.list >/dev/null
Installing APT Packages
11.24s$ travis_apt_get_update
0.79s$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install google-chrome-stable
Reading package lists...
Building dependency tree...
Reading state information...
Recommended packages:
The following packages will be upgraded:
1 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
Need to get 57.6 MB of archives.
After this operation, 7,168 B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
apt-get install failed
$ cat ${TRAVIS_HOME}/apt-get-update.log
Get:1 xenial-pgdg InRelease [51.3 kB]
Get:2 xenial InRelease [247 kB]
Get:3 xenial-security InRelease [109 kB]
Get:4 xenial-pgdg/main amd64 Packages [202 kB]
Get:5 xenial-updates InRelease [109 kB]
Get:6 xenial-backports InRelease [107 kB]
Get:7 xenial-pgdg/main i386 Packages [201 kB]
Ign:8 stable InRelease
Get:9 xenial/main Sources [1,103 kB]
Get:10 stable Release [943 B]
Get:11 xenial/restricted Sources [5,179 B]
Get:12 xenial/universe Sources [9,802 kB]
Get:13 stable Release.gpg [819 B]
Ign:13 stable Release.gpg
Get:14 xenial-security/main Sources [181 kB]
Get:15 stable/main amd64 Packages [1,111 B]
Get:16 xenial/multiverse Sources [215 kB]
Get:17 xenial/main amd64 Packages [1,558 kB]
Get:18 xenial/main i386 Packages [1,552 kB]
Get:19 xenial-security/restricted Sources [2,243 B]
Get:20 xenial/main Translation-en [799 kB]
Get:21 xenial/restricted amd64 Packages [14.1 kB]
Get:22 xenial-security/universe Sources [128 kB]
Get:23 xenial/restricted i386 Packages [14.5 kB]
Get:24 xenial/restricted Translation-en [3,019 B]
Get:25 xenial/universe amd64 Packages [9,827 kB]
Get:26 xenial-security/multiverse Sources [3,518 B]
Get:27 xenial-security/main amd64 Packages [816 kB]
Get:28 xenial/universe i386 Packages [9,804 kB]
Get:29 xenial-security/main i386 Packages [676 kB]
Get:30 xenial/universe Translation-en [6,256 kB]
Get:31 xenial-security/main Translation-en [368 kB]
Get:32 xenial-security/restricted amd64 Packages [12.7 kB]
Get:33 xenial/multiverse amd64 Packages [176 kB]
Get:34 xenial/multiverse i386 Packages [172 kB]
Get:35 xenial-security/restricted i386 Packages [12.7 kB]
Get:36 xenial/multiverse Translation-en [131 kB]
Get:37 xenial-updates/main Sources [422 kB]
Get:38 xenial-security/restricted Translation-en [2,204 B]
Get:39 xenial-updates/restricted Sources [2,696 B]
Get:40 xenial-updates/universe Sources [320 kB]
Get:41 xenial-updates/multiverse Sources [9,426 B]
Get:42 xenial-security/universe amd64 Packages [551 kB]
Get:43 xenial-updates/main amd64 Packages [1,211 kB]
Get:44 xenial-updates/main i386 Packages [1,052 kB]
Get:45 xenial-security/universe i386 Packages [478 kB]
Get:46 xenial-updates/main Translation-en [532 kB]
Get:47 xenial-updates/restricted amd64 Packages [13.1 kB]
Get:48 xenial-updates/restricted i386 Packages [13.1 kB]
Get:49 xenial-updates/restricted Translation-en [2,337 B]
Get:50 xenial-security/universe Translation-en [236 kB]
Get:51 xenial-updates/universe amd64 Packages [963 kB]
Get:52 xenial-updates/universe i386 Packages [881 kB]
Get:53 xenial-security/multiverse amd64 Packages [6,121 B]
Get:54 xenial-updates/universe Translation-en [423 kB]
Get:55 xenial-security/multiverse i386 Packages [6,301 B]
Get:56 xenial-updates/multiverse amd64 Packages [19.1 kB]
Get:57 xenial-updates/multiverse i386 Packages [17.9 kB]
Get:58 xenial-updates/multiverse Translation-en [8,978 B]
Get:59 xenial-backports/main Sources [5,073 B]
Get:60 xenial-backports/universe Sources [7,237 B]
Get:61 xenial-backports/main amd64 Packages [7,942 B]
Get:62 xenial-backports/main i386 Packages [7,942 B]
Get:63 xenial-security/multiverse Translation-en [2,699 B]
Get:64 xenial-backports/main Translation-en [4,571 B]
Get:65 xenial-backports/universe amd64 Packages [8,532 B]
Get:66 xenial-backports/universe i386 Packages [8,172 B]
Get:67 xenial-backports/universe Translation-en [4,275 B]
Fetched 51.9 MB in 4s (10.8 MB/s)
Reading package lists...
W: GPG error: stable Release: The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520
W: The repository ' stable Release' is not signed.
The command "sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install google-chrome-stable" failed and exited with 100 during .
Your build has been stopped.

I’m seeing the same thing, eg here:


I’m having this issue too :

Sorry for the delay of our reply!

This was the result of the Chrome APT repo key expiring last Friday. It seems to be fixed today, can you confirm?


Everything is fine for me today! All builds are running smoothly!

1 Like

Great news! I’ll be closing this post for now. Please create a new post if this or something similar happens again. Thanks!