[MDEV-5301] Problem with installing from repository Created: 2013-11-16  Updated: 2013-12-02  Resolved: 2013-12-02

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.33a-galera, 5.5.33a
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Michael Shestero Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Environment:

Ubuntu 12.04.1 LTS 64bit


Issue Links:
Duplicate
duplicates MDEV-5252 Deb installation issues due to versio... Closed

 Description   

First of all, I was unable to add repository following instructions at page:
https://downloads.mariadb.org/mariadb/repositories/#mirror=nucleus&distro=Ubuntu&distro_release=precise&version=5.5
(see listing below).
But I manage to do it by command:

gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.ASyOPV87XC --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db

that isn't in the instructions.

But I cannot install libmariadbclient18 package (with all consequences). Error message is:

libmariadbclient18:
  Depends: libmysqlclient18 (=5.5.33a+maria-1~precise) but 5.5.34-0ubuntu0.12.04.1 is to be installed

[listing]

root@fitpc3-shestero:~# sudo apt-get install python-software-properties
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-software-properties is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-headers-3.5.0-23-generic linux-headers-3.5.0-23
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@fitpc3-shestero:~# sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.dtwh7Wc7Ej --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
gpg: requesting key 1BB943DB from hkp server keyserver.ubuntu.com
gpgkeys: key CBCB082A1BB943DB not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
root@fitpc3-shestero:~# sudo add-apt-repository 'deb http://mariadb.mirror.nucleus.be//repo/5.5/ubuntu precise main'
root@fitpc3-shestero:~# sudo apt-get update
Hit http://ru.archive.ubuntu.com precise Release.gpg
 
<< … >>
 
Fetched 198 B in 1s (103 B/s)
Reading package lists... Done
W: GPG error: http://mariadb.mirror.nucleus.be precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CBCB082A1BB943DB
root@fitpc3-shestero:~# sudo apt-get install mariadb-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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-server : Depends: mariadb-server-5.5 (= 5.5.33a+maria-1~precise) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@fitpc3-shestero:~# 
 
 
root@fitpc3-shestero:~# gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.ASyOPV87XC --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
gpg: keyring `/tmp/tmp.ASyOPV87XC' created
gpg: requesting key 1BB943DB from hkp server keyserver.ubuntu.com
gpg: key 1BB943DB: public key "MariaDB Package Signing Key <package-signing-key@mariadb.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1
 
.........



 Comments   
Comment by Alexander Mashin [ 2013-11-16 ]

Looks like your depositories for Ubuntu 13.04 and 13.10 are broken. See http://askubuntu.com/questions/365992/ubuntu-13-10-installing-mariadb-when-apt-reports-mariadb-has-unmet-dependencies for further details.

Comment by Alexander Mashin [ 2013-11-16 ]

Now looks like ALL your depositories for Ubuntu are broken – 12.10 doesn't work either: a chain of dependencies running to libmysqlclient18.

The OS is Ubuntu 13.10.

Comment by Elena Stepanova [ 2013-11-16 ]

In the second part (the lib conflict), you experience the problem described here: http://tinyurl.com/c3jtdxj (a conflict with Oracle MySQL of a higher version).
On the same page you can find available workarounds.

For the first part (key problem), the situation is unclear. I seem to be able to install it all right:

sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.mOtnP2eWhI --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
gpg: requesting key 1BB943DB from hkp server keyserver.ubuntu.com
gpg: key 1BB943DB: public key "MariaDB Package Signing Key <package-signing-key@mariadb.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1

I'll try to look around to see what might be the reason of the error you got.

Upd:
Isn't the command you executed to resolve the issue with the key identical to what apt-key claimed to be executing during the process?
Is it possible that there was a temporary glitch (on the keyserver or whatever) during the time when you were running apt-key for the first time, which was resolved by the time you tried to run gpg manually? Is it reproducible anywhere for you, maybe on a different machine, or on a snapshot if you are using a VM?

Comment by Alexander Mashin [ 2013-11-16 ]

Thank you, it worked. Hope the issue with version number will be resolved soon.

Comment by Elena Stepanova [ 2013-11-16 ]

We are working on that, currently in scope of MDEV-5252.
Sadly, the fix apparently won't make it to MariaDB 5.5.34 which is to be released soon, so it will have to wait till at least the next release.

Comment by Michael Shestero [ 2013-11-16 ]

Is it possible to obtain the libmysqlclient18 (=5.5.33a+maria-1~precise) package manually and install it using dpkg ?

Comment by Elena Stepanova [ 2013-11-16 ]

It probably is, but why do you need to do it?
All you have to say on the command line is
apt-get install libmariadbclient18 libmysqlclient18=5.5.33a+maria-1~precise mariadb-common mysql-common=5.5.33a+maria-1~precise

This is one of the workarounds described on the page, specifying exact version of the library. If you missed the previous comment with the link, please read it, there is also a question about the problem with keys.

Comment by Michael Shestero [ 2013-11-16 ]

Thank you. I installed what I need from packages and my personal problem is solved.

Comment by Elena Stepanova [ 2013-12-02 ]

Closing as a duplicate of MDEV-5252

Generated at Thu Feb 08 07:03:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.