[debian-mysql] Most future-proof usage of virtual-mysql-server/client usage?

Otto Kekäläinen otto at seravo.fi
Fri Feb 28 14:01:13 UTC 2014


Hello,

I'm trying to solve issue
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739841

Do you think this would be the optimal solution?

d/control for mariadb-server-5.5:

Conflicts: mysql-server-core-5.5, mysql-server-core-5.6
Breaks: mysql-server-5.5, mysql-server-5.6, virtual-mysql-server
Replaces: mysql-server-5.5, mysql-server-5.6, virtual-mysql-server
Provides: virtual-mysql-server

This is essentially Breaks/Replaces/Provides for same package.

..but I have a vague memory that in my earlier experiments it was that
Breaks does not work it two packages have same (conflicting) files,
and maybe instead Conflicts/Replaces/Provides is needed.


*******

By the way, then I tried to install mysql-5.6 from experimental for
testing purposes the install failed directly with "Segmentation
fault":

root at debunstable:~# LANGUAGE=C apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libbind9-80 libdns88 libisc84 libisccc80 libisccfg82 liblwres80
Use 'apt-get autoremove' to remove them.
The following packages have been kept back:
  apt-utils base-passwd db5.1-util dbus exim4-base exim4-daemon-light
iproute2 libpam-modules
  libpam-modules-bin libpython2.7-minimal libpython2.7-stdlib
libpython3.3-minimal libpython3.3-stdlib
  libsasl2-2 libsasl2-modules-db linux-image-amd64 python2.7
python2.7-minimal python3-chardet python3.3
  python3.3-minimal
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [K/e] k
Setting up mysql-server-5.6 (5.6.15-1~exp1) ...
[ ok ] Stopping MySQL database server: mysqld.
/var/lib/dpkg/info/mysql-server-5.6.postinst: line 65:  5976 Broken
pipe             cat $tfile_select_db
$mysql_datadir/mysql_system_tables.sql
$mysql_datadir/debian_create_root_user.sql
$mysql_datadir/fill_help_tables.sql
      5977                       | $MYSQL_CMDLINE 2>&1
      5978 Segmentation fault      | $ERR_LOGGER
/var/lib/dpkg/info/mysql-server-5.6.postinst: line 65:  5994 Done
              echo "$replace_query"
      5995 Broken pipe             | $MYSQL_BOOTSTRAP 2>&1
      5996 Segmentation fault      | $ERR_LOGGER
dpkg: error processing package mysql-server-5.6 (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of mysql-testsuite-5.6:
 mysql-testsuite-5.6 depends on mysql-server-5.6 (= 5.6.15-1~exp1); however:
  Package mysql-server-5.6 is not configured yet.

dpkg: error processing package mysql-testsuite-5.6 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.6
 mysql-testsuite-5.6
E: Sub-process /usr/bin/dpkg returned an error code (1)
root at debunstable:~#



-- 
Check out our blog at http://seravo.fi/blog
and follow @ottokekalainen



More information about the pkg-mysql-maint mailing list