Is there a shared compat package for debian?

204 views
Skip to first unread message

Bassam

unread,
Jun 29, 2010, 4:51:41 PM6/29/10
to Percona Discussion
I've managed to install percona server 5.1 correctly from {http://
www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.47-11.1/deb/lenny/x86_64/}
on debian lenny. However, when I install maatkit it fails with the
following error:

test:~# aptitude install maatkit
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages are BROKEN:
percona-server-common
The following NEW packages will be installed:
libdbd-mysql-perl{a} libmysqlclient15off{a} libterm-readkey-perl{a}
maatkit mysql-common{a}
0 packages upgraded, 5 newly installed, 0 to remove and 30 not
upgraded.
Need to get 3172kB of archives. After unpacking 8561kB will be used.
The following packages have unmet dependencies:
percona-server-common: Conflicts: mysql-common but 5.0.51a-24+lenny4
is to be installed.
The following actions will resolve these dependencies:

Remove the following packages:
libmysqlclient16
percona-server-client-5.1
percona-server-common
percona-server-server-5.1

Score is -754

I've noticed that there is a compatiblity RPM, but is there a DEB too?

Thanks!

Aleksandr Kuzminsky

unread,
Jun 29, 2010, 6:27:21 PM6/29/10
to percona-d...@googlegroups.com
Hi Bassam,


There is no need to have a separate -compat package on Debian.
Dependency chain looks like maatkit -> libdbd-mysql-perl ->
libmysqlclient15off -> mysql-common

mysql-common is provided by percona-server-common as well as
mysql-common package itself.
In your case percona-server-common seems to be installed, but apt tries
to install mysql-common.
Obviously this causes dependency issue as percona-server-* packaged
don't obsolete the respective mysql-*.

In your case I would ensure there are no mysql-* packages in the system.
Check if percona-server-common is installed correctly and then install
maatkit.


-Aleks

Bassam

unread,
Jun 30, 2010, 12:46:29 AM6/30/10
to Percona Discussion
I'm not sure what else to do here. I've done the following on a fresh
installation of debian:

dpkg -l *mysql* (which shows no mysql installed)
aptitude install percona-server-common (succeeds)
aptitude install mysql-common (complain about BROKEN package below)

test:~# aptitude install mysql-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages are BROKEN:
percona-server-common
The following NEW packages will be installed:
mysql-common
0 packages upgraded, 1 newly installed, 0 to remove and 31 not
upgraded.
Need to get 61.8kB of archives. After unpacking 139kB will be used.
The following packages have unmet dependencies:
percona-server-common: Conflicts: mysql-common but 5.0.51a-24+lenny4
is to be installed.
The following actions will resolve these dependencies:

Remove the following packages:
percona-server-common


I would have expected that to succeed, right?



On Jun 29, 3:27 pm, Aleksandr Kuzminsky

Bassam

unread,
Jun 30, 2010, 12:46:38 AM6/30/10
to Percona Discussion
I'm not sure what else to do here. I've done the following on a fresh
installation of debian:

dpkg -l *mysql* (which shows no mysql installed)
aptitude install percona-server-common (succeeds)
aptitude install mysql-common (complain about BROKEN package below)

test:~# aptitude install mysql-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages are BROKEN:
percona-server-common
The following NEW packages will be installed:
mysql-common
0 packages upgraded, 1 newly installed, 0 to remove and 31 not
upgraded.
Need to get 61.8kB of archives. After unpacking 139kB will be used.
The following packages have unmet dependencies:
percona-server-common: Conflicts: mysql-common but 5.0.51a-24+lenny4
is to be installed.
The following actions will resolve these dependencies:

Remove the following packages:
percona-server-common


I would have expected that to succeed, right?



On Jun 29, 3:27 pm, Aleksandr Kuzminsky
<aleksandr.kuzmin...@gmail.com> wrote:

Bassam Tabbara

unread,
Jun 30, 2010, 2:16:38 AM6/30/10
to percona-d...@googlegroups.com
Here is another data point. libmysqlclient15off that is in the official
debian repositories has a dependency on a specific version of mysql-common

test:~# apt-rdepends libmysqlclient15off


Reading package lists... Done
Building dependency tree
Reading state information... Done

libmysqlclient15off
Depends: libc6 (>= 2.7-1)
Depends: mysql-common (>= 5.0.51a-24+lenny4)
Depends: zlib1g (>= 1:1.1.4)
libc6
Depends: libgcc1
libgcc1
Depends: gcc-4.3-base (= 4.3.2-1.1)
Depends: libc6 (>= 2.7-1)

So when I install libdbd-mysql-perl the dependency does not seem to be
resolved.

However, if I install the libmysqlclient15off from the percona servers first
(which only has a dependency on mysql-common) all seems to work fine.

| --
| You received this message because you are subscribed to the Google Groups
| "Percona Discussion" group.
| To post to this group, send email to percona-d...@googlegroups.com.
| To unsubscribe from this group, send email to percona-
| discussion+...@googlegroups.com.
| For more options, visit this group at
| http://groups.google.com/group/percona-discussion?hl=en.


Aleksandr Kuzminsky

unread,
Jun 30, 2010, 2:51:27 AM6/30/10
to percona-d...@googlegroups.com
Bassam,


> installation of debian:
>
> dpkg -l *mysql* (which shows no mysql installed)
> aptitude install percona-server-common (succeeds)
> aptitude install mysql-common (complain about BROKEN package below)
>

Why are you installing mysql-common?
percona-server-common provides both percona-server-common as well as
mysql-common.
maatkit will be happy with it.

> The following packages have unmet dependencies:
> percona-server-common: Conflicts: mysql-common but 5.0.51a-24+lenny4
> is to be installed.
> The following actions will resolve these dependencies:
>
> Remove the following packages:
> percona-server-common
>
>
> I would have expected that to succeed, right?
>

Not really. mysql-common and percona-server-common conflict with each
other and should conflict.

If you want to install maatkit and Percona Server, you need to install
Percona Server first. Then maatkit:

apt-get install percona-server-server
apt-get install maatkit


Eventually you'll get following:


Debian-lenny-amd64:~# dpkg -l | grep -i -e mysql -e percona
ii libdbd-mysql-perl 4.007-1+lenny1 A
Perl5 database interface to the MySQL database
ii libmysqlclient15off 5.0.91-percona-b22.lenny.33
MySQL database client library
ii libmysqlclient16 5.1.47-11.1-51.lenny
Percona Server database client library
ii maatkit 1877-1
Command-line utilities for MySQL
ii percona-server-client-5.1 5.1.47-11.1-51.lenny
Percona Server database client binaries
ii percona-server-common 5.1.47-11.1-51.lenny
Percona Server database common files (e.g. /etc/mysql/my.cnf)
ii percona-server-server 5.1.47-11.1-51.lenny
Percona Server database server (metapackage depending on the l
ii percona-server-server-5.1 5.1.47-11.1-51.lenny
Percona Server database server binaries
Debian-lenny-amd64:~#


-Aleks

Bassam Tabbara

unread,
Jun 30, 2010, 12:08:00 PM6/30/10
to percona-d...@googlegroups.com
Ok thanks for all the help.

I'll include libmysqlclient15off in our own repository.

| -----Original Message-----
| From: percona-d...@googlegroups.com [mailto:percona-
| discu...@googlegroups.com] On Behalf Of Aleksandr Kuzminsky
| Sent: Tuesday, June 29, 2010 11:54 PM
| To: percona-d...@googlegroups.com
| Subject: Re: Is there a shared compat package for debian?
|

| On 06/30/2010 09:16 AM, Bassam Tabbara wrote:
| > Here is another data point. libmysqlclient15off that is in the
| > official debian repositories has a dependency on a specific version of
| > mysql-common
| >
| > test:~# apt-rdepends libmysqlclient15off Reading package lists... Done
| > Building dependency tree Reading state information... Done
| > libmysqlclient15off
| > Depends: libc6 (>= 2.7-1)
| > Depends: mysql-common (>= 5.0.51a-24+lenny4)
| > Depends: zlib1g (>= 1:1.1.4)
| > libc6
| > Depends: libgcc1
| > libgcc1
| > Depends: gcc-4.3-base (= 4.3.2-1.1)
| > Depends: libc6 (>= 2.7-1)
| >
| > So when I install libdbd-mysql-perl the dependency does not seem to be
| > resolved.
| >
| > However, if I install the libmysqlclient15off from the percona servers
| > first (which only has a dependency on mysql-common) all seems to work
| fine.
| >
|

| Unfortunately this is expected behavior. And this is the reason why
Percona
| delivers its own libmysqlclient15off .
|
| -a

Reply all
Reply to author
Forward
0 new messages