[MDEV-25991] problems with mariadb_repos_setup requiring apt-transport-https Created: 2021-06-22 Updated: 2021-07-19 Resolved: 2021-06-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | N/A |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Hartmut Holzgraefe | Assignee: | Daniel Bartholomew |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Starting with apt 1.5, apt-transport-https is deprecated:
In all Ubuntu LTS versions from 18.04 and above, and in Debian 10, the apt-transport-https package is just a dummy, installing some documentation files in /usr/share/doc/apt-transport-https/ only, and not installed by default. Still, mariadb_repo_setup checks for this package on all Debian and Ubuntu versions, and complains when not finding it:
While --skip-checked-installed allows to work around it, I don't think that it is a good thing to fail on recent Ubuntu and Debian installations by default unless either the skip action is used or the dummy package installed. Add to this that on Ubuntu trying to install the package can actually fail in interesting way. E.g. on a fresh Vagrant instance, set up from the official ubuntu/bionic64 or ubuntu/focal64 base boxes I'm getting this:
Only after running apt-get update at least once I can actually install that deprecated package:
|
| Comments |
| Comment by Hartmut Holzgraefe [ 2021-06-22 ] | |||||||||||||
|
Suggested fix: the "perfect" fix would check whether apt version is >=1.5, but as there is no easy shell command for comparing version numbers, and knowing that of the still supported apt platforms only Debian 9 "Stretch" still has an apt version older than that, I suggest changing the check for this package from checking for Debian or Ubuntu os type to just Debian Stretch OS version:
| |||||||||||||
| Comment by Daniel Bartholomew [ 2021-06-30 ] | |||||||||||||
|
Pushed out an update to mariadb_repo_setup and mariadb_es_repo_setup to remove the apt-transport-https check from all except Debian 9 Stretch. |