MySQL 5.7 installation failed, GPG error,The following signatures couldn't be verified because the public key is not available: NO_PUBKEY

Installing APT Packages
6.85s$ travis_apt_get_update
0.58s$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends (travis_apt_get_options) install mysql-server Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: mysql-server : Depends: mysql-server-5.5 but it is not going to be installed E: Unable to correct problems, you have held broken packages. apt-get.diagnostics apt-get install failed cat ${TRAVIS_HOME}/apt-get-update.log

Fetched 39.8 MB in 3s (10.2 MB/s)
Reading package lists…
W: http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/trusty/Release.gpg: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
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

Fetched 39.8 MB in 5s (7,734 kB/s)
Reading package lists…
W: http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/trusty/Release.gpg: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
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

The command “sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install mysql-server” failed and exited with 100 during .

Your build has been stopped.

Since July 21st 2019, MySQL 5.7 is not supported on Ubuntu Trusty (14.04) anymore. See MySQL Product Support EOL Announcements and this post in the MySQL Forums.

The current recommendation is to run your builds on Ubuntu Xenial (16.04) with the following in your .travis.yml file:

dist: xenial

services:
  - mysql

This will default to MySQL 5.7 on Xenial.

Hope this helps!

1 Like

Thank you so much. It solved my problem.

1 Like
Imprint