[MDEV-20654] Repo Configuration Tool failing on Ubuntu 16.04 LTS (Xenial) Created: 2019-09-23 Updated: 2020-08-25 Resolved: 2019-10-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Configuration, Packaging |
| Affects Version/s: | 10.3.18, 10.4.8 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Juan | Assignee: | Daniel Bartholomew |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu Xenial (16.04 LTS) |
||
| Description |
|
Running repo configuration fails:
This might not be such a problem, except that directions for installing with dpkg on the KB seem to be about 7 years old judging from the versions mentioned, so not directly applicable. |
| Comments |
| Comment by Geoff Montee (Inactive) [ 2019-09-24 ] | |||||||||||||||||||||||||||||||||||
I've updated that documentation section with some new details that work for MariaDB 10.4 on Ubuntu Bionic: https://mariadb.com/kb/en/library/installing-mariadb-deb-files/#installing-mariadb-with-dpkg | |||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2019-09-24 ] | |||||||||||||||||||||||||||||||||||
|
It looks like the root cause of the problem is this:
This can be reproduced by executing the following on Ubuntu Xenial:
As far as I can tell, it seems to be a problem with the keys.gnupg.net key server. The above command seems to fail every time that I run it on Ubuntu Xenial, but not always on the same key. If I replace the key server with keyserver.ubuntu.com, then it works every time. For example:
| |||||||||||||||||||||||||||||||||||
| Comment by Daniel Bartholomew [ 2019-09-25 ] | |||||||||||||||||||||||||||||||||||
|
Just tried this on an Ubuntu Xenial VM and it didn't fail:
Same thing with Bionic:
I also tried the command using keyserver.ubuntu.com and it succeeded on both xenial and bionic. My only guess as to why you're seeing errors and I'm not is the generic and ephemeral "network issues" somewhere. We actually switched from using keyserver.ubuntu.com to using keys.gnupg.net just a couple months ago because keyserver.ubuntu.com was misbehaving (see I think a better and more robust solution would be for the script to download a gpg keyfile with all the correct keys directly from downloads.mariadb.com and place it under /etc/apt/trusted.gpg.d/. I'll update the repo setup scripts to do just that. | |||||||||||||||||||||||||||||||||||
| Comment by Daniel Bartholomew [ 2019-09-25 ] | |||||||||||||||||||||||||||||||||||
|
I've uploaded a new version of the mariadb_repo_setup script with the new functionality in place. Instead of using 'apt-key adv --recv-keys ...' it downloads a keyring file from downloads.mariadb.com, verifies it, and then puts it in the correct place. Then the rest of the script functions as it usually does. I've tested the updated script on Ubuntu 18.04 bionic and 16.04 xenial; and on Debian 8 jessie, 9 stretch, and 10 buster, which are all of the Ubuntu/Debian variants the script supports. This will be a much more reliable way to import the GPG keys on these systems. |