[MDEV-14672] Minor upgrade fails on xenial due to missing unixODBC (case-sensitive) Created: 2017-12-16  Updated: 2020-02-24  Resolved: 2020-02-24

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Platform Debian, Storage Engine - Connect
Affects Version/s: 10.0
Fix Version/s: 10.0.36

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Oleksandr Byelkin
Resolution: Fixed Votes: 0
Labels: contribution, foundation


 Description   

http://buildbot.askmonty.org/buildbot/builders/kvm-deb-xenial-amd64/builds/2495/steps/minor-upgrade-all/logs/stdio

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:
 mariadb-connect-engine-10.0 : Depends: unixODBC but it is not installable
E: Unable to correct problems, you have held broken packages.

$ dpkg -l | grep -iE unixodbc
ii  unixodbc                           2.3.1-4.1                       amd64        Basic ODBC tools

It is the same problem as MDEV-10032, which was only fixed in 10.1+. It needs to be done in 10.0 as well.



 Comments   
Comment by Faustin Lammler [ 2018-03-06 ]

Hi,
trying to reproduce this.

I am able to download the package and I can see the dependency on "unixODBC" instead of "unixodbc":
$ apt download mariadb-connect-engine-10.0
$ ar x mariadb-connect-engine-10.0_10.0.34+maria-1~xenial_amd64.deb
$ tar -xvf control.tar.gz
$ grep -i unixODBC control
Depends: libxml2, mariadb-server-10.0 | mariadb-galera-server-10.0, unixODBC

But when I try to install it directly from apt, I get the following:
$ sudo apt install mariadb-connect-engine-10.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mariadb-connect-engine-10.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
mariadb-plugin-connect:i386 mariadb-plugin-connect

E: Package 'mariadb-connect-engine-10.0' has no installation candidate

So it's only on upgrade that this append?

And the following is working:
$ sudo apt install mariadb-server-10.0 unixodbc
$ apt download mariadb-connect-engine-10.0
$ sudo dpkg -i mariadb-connect-engine-10.0_10.0.34+maria-1~xenial_amd64.deb
Selecting previously unselected package mariadb-connect-engine-10.0.
(Reading database ... 94024 files and directories currently installed.)
Preparing to unpack mariadb-connect-engine-10.0_10.0.34+maria-1~xenial_amd64.deb ...
Unpacking mariadb-connect-engine-10.0 (10.0.34+maria-1~xenial) ...
Setting up mariadb-connect-engine-10.0 (10.0.34+maria-1~xenial) ...

So apt download + dpkg -i seems to be a workaround until a new package is provided?

Comment by Faustin Lammler [ 2018-05-15 ]

otto do you need something else to accept the PR (https://github.com/MariaDB/server/pull/726) so we can close this bug ?

Comment by Otto Kekäläinen [ 2020-02-24 ]

This was fixed via https://github.com/MariaDB/server/pull/726, closing issue.

Generated at Thu Feb 08 08:15:23 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.