Can't install MySQL 5.7 on Ubuntu Trusty

Hi, I’m checking this issue from this morning to see if it has been resolved… I guess that probably the MySQL GPG keys have expired.

Cf. Trusty + Mysql 5.7 install error

Thank in advance for your help.


dist: trusty
      - mysql-5.7-trusty
      - mysql-server
      - mysql-client


The following packages have unmet dependencies:
 mysql-client : Depends: mysql-client-5.5 but it is not going to be installed
 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.
e[0Ke[31;1mapt-get install failede[0m
$ cat ${TRAVIS_HOME}/apt-get-update.log
Get:1 trusty InRelease [15.4 kB]
Get:3 trusty InRelease [3,106 B]
Get:4 trusty-security InRelease [65.9 kB]
Get:6 trusty-pgdg InRelease [56.5 kB]
Get:5 39x InRelease [3,168 B]
Ign:7 trusty/mongodb-org/3.4 InRelease
Get:8 trusty/mongodb-org/3.4 Release [2,495 B]
Get:9 trusty/mongodb-org/3.4 Release.gpg [801 B]
Ign:10 trusty InRelease
Get:11 trusty-updates InRelease [65.9 kB]
Get:12 trusty-backports InRelease [65.9 kB]
Get:13 trusty Release [58.5 kB]
Get:14 trusty Release.gpg [933 B]
Get:15 trusty/main amd64 Packages [1,822 B]
Ign:2 ./ InRelease
Get:16 ./ Release [1,609 B]
Get:17 ./ Release.gpg [473 B]
Ign:18 trusty InRelease
Get:19 trusty InRelease [20.8 kB]
Get:20 trusty InRelease [37.1 kB]
Get:21 trusty InRelease [15.4 kB]
Get:22 trusty InRelease [15.4 kB]
Get:23 trusty InRelease [15.5 kB]
Get:24 trusty/main amd64 Packages [1,843 B]
Get:25 trusty/main i386 Packages [1,842 B]
Get:26 trusty/main Translation-en [990 B]
Get:27 trusty Release [15.1 kB]
Get:28 trusty Release.gpg [316 B]
Get:29 trusty-security/main Sources [220 kB]
Get:30 trusty-security/restricted Sources [5,050 B]
Get:31 trusty-security/universe Sources [126 kB]
Get:32 trusty-security/multiverse Sources [3,070 B]
Get:33 trusty-security/main amd64 Packages [1,032 kB]
Get:34 trusty-security/main i386 Packages [934 kB]
Get:35 trusty-security/main Translation-en [541 kB]
Get:36 trusty-security/restricted amd64 Packages [18.1 kB]
Get:37 trusty-security/restricted i386 Packages [17.8 kB]
Get:38 trusty-security/restricted Translation-en [3,272 B]
Get:39 trusty-security/universe amd64 Packages [377 kB]
Get:40 trusty-security/universe i386 Packages [355 kB]
Get:41 trusty-security/universe Translation-en [203 kB]
Get:42 trusty-pgdg/main amd64 Packages [201 kB]
Get:43 trusty-security/multiverse amd64 Packages [4,730 B]
Get:44 trusty-pgdg/main i386 Packages [201 kB]
Get:45 trusty-security/multiverse i386 Packages [4,887 B]
Get:46 trusty-security/multiverse Translation-en [2,426 B]
Get:47 39x/main amd64 Packages [682 B]
Get:48 39x/main i386 Packages [682 B]
Get:49 trusty/mongodb-org/3.4/multiverse amd64 Packages [14.1 kB]
Get:50 trusty-updates/main Sources [532 kB]
Get:51 trusty InRelease [23.5 kB]
Get:52 trusty-updates/restricted Sources [6,444 B]
Get:53 trusty-updates/universe Sources [288 kB]
Get:54 trusty-updates/multiverse Sources [7,389 B]
Get:55 trusty-updates/main amd64 Packages [1,460 kB]
Get:56 trusty-updates/main i386 Packages [1,354 kB]
Get:57 trusty-updates/main Translation-en [701 kB]
Get:58 trusty-updates/restricted amd64 Packages [21.4 kB]
Get:59 trusty-updates/restricted i386 Packages [21.1 kB]
Get:60 trusty-updates/restricted Translation-en [3,706 B]
Get:61 trusty-updates/universe amd64 Packages [671 kB]
Get:62 trusty-updates/universe i386 Packages [646 kB]
Get:63 trusty InRelease [23.2 kB]
Get:64 trusty-updates/universe Translation-en [347 kB]
Get:65 trusty-updates/multiverse amd64 Packages [16.1 kB]
Get:66 trusty-updates/multiverse i386 Packages [16.6 kB]
Get:67 trusty-updates/multiverse Translation-en [7,680 B]
Get:68 trusty-backports/main Sources [10.4 kB]
Get:69 trusty-backports/restricted Sources [40 B]
Get:70 trusty-backports/universe Sources [41.3 kB]
Get:71 trusty-backports/multiverse Sources [1,747 B]
Get:72 trusty-backports/main amd64 Packages [14.7 kB]
Get:73 trusty-backports/main i386 Packages [14.7 kB]
Get:74 trusty-backports/main Translation-en [7,426 B]
Get:75 trusty-backports/restricted amd64 Packages [40 B]
Get:76 trusty-backports/restricted i386 Packages [40 B]
Get:77 trusty-backports/restricted Translation-en [40 B]
Get:78 trusty-backports/universe amd64 Packages [52.5 kB]
Get:79 trusty-backports/universe i386 Packages [52.4 kB]
Get:80 trusty-backports/universe Translation-en [40.0 kB]
Get:81 trusty-backports/multiverse amd64 Packages [1,392 B]
Get:82 trusty-backports/multiverse i386 Packages [1,376 B]
Get:83 trusty-backports/multiverse Translation-en [1,165 B]
Get:84 trusty/main Sources [1,335 kB]
Get:85 trusty/restricted Sources [5,335 B]
Get:86 trusty/universe Sources [7,926 kB]
Get:87 trusty InRelease [23.7 kB]
Get:88 trusty/multiverse Sources [211 kB]
Get:89 trusty/main amd64 Packages [1,743 kB]
Get:90 ./ Packages [636 B]
Get:91 trusty/main i386 Packages [1,739 kB]
Ign:92 stable InRelease
Get:93 stable Release [943 B]
Get:94 stable Release.gpg [819 B]
Get:95 trusty/restricted amd64 Packages [16.0 kB]
Get:96 trusty/restricted i386 Packages [16.4 kB]
Get:97 trusty/universe amd64 Packages [7,589 kB]
Get:98 trusty/universe i386 Packages [7,597 kB]
Get:99 trusty/main amd64 Packages [3,494 B]
Get:100 trusty/main i386 Packages [3,496 B]
Get:101 trusty/main Translation-en [2,368 B]
Get:102 trusty/multiverse amd64 Packages [169 kB]
Get:103 trusty/multiverse i386 Packages [172 kB]
Get:104 trusty/main amd64 Packages [10.1 kB]
Get:105 trusty/main i386 Packages [10.2 kB]
Get:106 trusty/main Translation-en [2,641 B]
Get:107 trusty/main amd64 Packages [430 B]
Get:108 trusty/main i386 Packages [430 B]
Get:109 trusty/main Translation-en [374 B]
Get:110 trusty/stable amd64 Packages [5,957 B]
Get:111 trusty/edge amd64 Packages [7,106 B]
Get:112 trusty/main amd64 Packages [20 B]
Get:113 trusty/main i386 Packages [20 B]
Get:114 trusty/main Translation-en [20 B]
Get:115 trusty/main amd64 Packages [985 B]
Get:116 trusty/main i386 Packages [985 B]
Get:117 trusty/main Translation-en [644 B]
Ign:63 trusty InRelease
Get:118 trusty/main Sources [843 B]
Get:119 stable/main amd64 Packages [1,114 B]
Get:120 trusty/main amd64 Packages [3,628 B]
Get:121 trusty/main i386 Packages [848 B]
Get:122 trusty/main Sources [20 B]
Get:123 trusty/main amd64 Packages [8,003 B]
Get:124 trusty/main i386 Packages [7,761 B]
Get:125 trusty/main Sources [20 B]
Get:126 trusty/main amd64 Packages [8,066 B]
Get:127 trusty/main i386 Packages [8,066 B]
Fetched 39.7 MB in 4s (9,640 kB/s)
Reading package lists...
W: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
W: GPG error: trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
W: The repository ' trusty InRelease' is not signed.
W: There is no public key available for the following key IDs:
Get:1 trusty-security InRelease [65.9 kB]
Get:2 trusty InRelease [3,106 B]
Get:3 trusty InRelease [33.3 kB]
Get:5 trusty InRelease [15.4 kB]
Get:7 trusty-pgdg InRelease [56.5 kB]
Get:4 39x InRelease [3,168 B]
Ign:8 trusty/mongodb-org/3.4 InRelease
Get:9 trusty/mongodb-org/3.4 Release [2,495 B]
Ign:10 stable InRelease
Get:11 trusty/mongodb-org/3.4 Release.gpg [801 B]
Get:12 stable Release [943 B]
Get:13 stable Release.gpg [819 B]
Get:14 trusty-security/main Sources [220 kB]
Get:15 trusty-security/restricted Sources [5,050 B]
Get:16 trusty-security/universe Sources [126 kB]
Get:17 trusty-security/multiverse Sources [3,070 B]
Get:18 trusty-security/main amd64 Packages [1,032 kB]
Ign:6 ./ InRelease
Get:19 ./ Release [1,609 B]
Get:20 ./ Release.gpg [473 B]
Get:21 trusty/main amd64 Packages [1,822 B]
Get:22 trusty-security/main i386 Packages [934 kB]
Ign:23 trusty InRelease
Get:24 trusty InRelease [20.8 kB]
Get:25 trusty InRelease [15.4 kB]
Get:26 trusty InRelease [15.4 kB]
Get:27 trusty InRelease [15.5 kB]
Get:28 trusty-security/main Translation-en [541 kB]
Get:29 trusty Release [15.1 kB]
Get:30 trusty Release.gpg [316 B]
Get:31 trusty/mysql-5.7 amd64 Packages [20 B]
Get:32 trusty/mysql-5.7 i386 Packages [20 B]
Get:33 trusty-security/restricted amd64 Packages [18.1 kB]
Get:34 trusty-security/restricted i386 Packages [17.8 kB]
Get:35 trusty-security/restricted Translation-en [3,272 B]
Get:36 trusty-security/universe amd64 Packages [377 kB]
Get:37 trusty-security/universe i386 Packages [355 kB]
Get:38 trusty-security/universe Translation-en [203 kB]
Get:39 trusty-security/multiverse amd64 Packages [4,730 B]
Get:40 trusty-security/multiverse i386 Packages [4,887 B]
Get:41 trusty-security/multiverse Translation-en [2,426 B]
Get:42 trusty InRelease [37.1 kB]
Get:43 trusty/main amd64 Packages [1,843 B]
Get:44 trusty/main i386 Packages [1,842 B]
Get:45 trusty/main Translation-en [990 B]
Ign:46 trusty InRelease
Get:47 trusty-updates InRelease [65.9 kB]
Get:48 trusty-pgdg/main amd64 Packages [201 kB]
Get:49 trusty-backports InRelease [65.9 kB]
Get:50 trusty-pgdg/main i386 Packages [201 kB]
Get:51 trusty Release [58.5 kB]
Get:52 trusty Release.gpg [933 B]
Get:53 39x/main amd64 Packages [682 B]
Get:54 39x/main i386 Packages [682 B]
Get:55 trusty/mongodb-org/3.4/multiverse amd64 Packages [14.1 kB]
Get:56 stable/main amd64 Packages [1,114 B]
Get:57 ./ Packages [636 B]
Get:58 trusty/main amd64 Packages [3,494 B]
Get:59 trusty/main i386 Packages [3,496 B]
Get:60 trusty/main Translation-en [2,368 B]
Get:61 trusty/main amd64 Packages [10.1 kB]
Get:62 trusty/main i386 Packages [10.2 kB]
Get:63 trusty InRelease [23.5 kB]
Get:64 trusty/main Translation-en [2,641 B]
Get:65 trusty/main amd64 Packages [430 B]
Get:66 trusty/main i386 Packages [430 B]
Get:67 trusty/main Translation-en [374 B]
Get:68 trusty/main amd64 Packages [20 B]
Get:69 trusty/main i386 Packages [20 B]
Get:70 trusty/main Translation-en [20 B]
Get:71 trusty/main amd64 Packages [985 B]
Get:72 trusty/main i386 Packages [985 B]
Get:73 trusty/main Translation-en [644 B]
Get:74 trusty/stable amd64 Packages [5,957 B]
Get:75 trusty InRelease [23.2 kB]
Get:76 trusty-updates/main Sources [532 kB]
Get:77 trusty-updates/restricted Sources [6,444 B]
Get:78 trusty-updates/universe Sources [288 kB]
Get:79 trusty/edge amd64 Packages [7,106 B]
Get:80 trusty-updates/multiverse Sources [7,389 B]
Get:81 trusty-updates/main amd64 Packages [1,460 kB]
Get:82 trusty-updates/main i386 Packages [1,354 kB]
Get:83 trusty-updates/main Translation-en [701 kB]
Get:84 trusty-updates/restricted amd64 Packages [21.4 kB]
Get:85 trusty InRelease [23.7 kB]
Get:86 trusty-updates/restricted i386 Packages [21.1 kB]
Get:87 trusty-updates/restricted Translation-en [3,706 B]
Get:88 trusty-updates/universe amd64 Packages [671 kB]
Get:89 trusty-updates/universe i386 Packages [646 kB]
Get:90 trusty-updates/universe Translation-en [347 kB]
Get:91 trusty-updates/multiverse amd64 Packages [16.1 kB]
Get:92 trusty-updates/multiverse i386 Packages [16.6 kB]
Get:93 trusty-updates/multiverse Translation-en [7,680 B]
Get:94 trusty-backports/main Sources [10.4 kB]
Get:95 trusty-backports/restricted Sources [40 B]
Get:96 trusty-backports/universe Sources [41.3 kB]
Get:97 trusty-backports/multiverse Sources [1,747 B]
Get:98 trusty-backports/main amd64 Packages [14.7 kB]
Get:99 trusty-backports/main i386 Packages [14.7 kB]
Get:100 trusty-backports/main Translation-en [7,426 B]
Get:101 trusty-backports/restricted amd64 Packages [40 B]
Get:102 trusty-backports/restricted i386 Packages [40 B]
Get:103 trusty-backports/restricted Translation-en [40 B]
Get:104 trusty-backports/universe amd64 Packages [52.5 kB]
Get:105 trusty-backports/universe i386 Packages [52.4 kB]
Get:106 trusty-backports/universe Translation-en [40.0 kB]
Get:107 trusty-backports/multiverse amd64 Packages [1,392 B]
Get:108 trusty-backports/multiverse i386 Packages [1,376 B]
Get:109 trusty-backports/multiverse Translation-en [1,165 B]
Get:110 trusty/main Sources [1,335 kB]
Get:111 trusty/restricted Sources [5,335 B]
Get:112 trusty/universe Sources [7,926 kB]
Ign:75 trusty InRelease
Get:113 trusty/main Sources [843 B]
Get:114 trusty/multiverse Sources [211 kB]
Get:115 trusty/main amd64 Packages [1,743 kB]
Get:116 trusty/main i386 Packages [1,739 kB]
Get:117 trusty/restricted amd64 Packages [16.0 kB]
Get:118 trusty/restricted i386 Packages [16.4 kB]
Get:119 trusty/universe amd64 Packages [7,589 kB]
Get:120 trusty/main amd64 Packages [3,628 B]
Get:121 trusty/universe i386 Packages [7,597 kB]
Get:122 trusty/multiverse amd64 Packages [169 kB]
Get:123 trusty/multiverse i386 Packages [172 kB]
Get:124 trusty/main i386 Packages [848 B]
Get:125 trusty/main Sources [20 B]
Get:126 trusty/main amd64 Packages [8,003 B]
Get:127 trusty/main i386 Packages [7,761 B]
Get:128 trusty/main Sources [20 B]
Get:129 trusty/main amd64 Packages [8,066 B]
Get:130 trusty/main i386 Packages [8,066 B]
Fetched 39.8 MB in 4s (9,233 kB/s)
Reading package lists...
W: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
W: GPG error: trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
W: The repository ' trusty InRelease' is not signed.
W: There is no public key available for the following key IDs:
e[0Ke[31;1mThe command "sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install mysql-server mysql-client" failed and exited with 100 during .e[0m

Your build has been stopped.

Got the same error yesterday.

We are also seeing this!

We aren’t sure where this is coming from yet but it seems specific to dist: trusty builds.

If it’s an option for you, you should be able to get your builds back to green with dist: xenial in your .travis.yml file.

FYI, it seems the MySQL APT repo was updated recently and all Trusty versions have empty Packages files e.g.

We have posted in MySQL’s forum to ask if they could have a look.

Thank you for your patience!

For those who are stuck, there has been chatter on a previous ticket that may get your builds going until the upstream repo is repaired:


I`m have the same problem

These all my tries to fix this:

It seems the MySQL 5.7 packages for Trusty won’t be generated anymore:

Unfortunately, as Ubuntu 14.04 has reached end of life, we no longer support it or publish updates for it.

Since the OS itself no longer receives important security updates, it’s strongly recommended to upgrade, e.g. to Ubuntu 16.04 or 18.04.

Our current recommendation is to run your builds on Xenial where MySQL 5.7 is pre-installed. Here’s what to add to your .travis.yml file:

dist: xenial

  - mysql
1 Like