file conflict with libmysqlclient-dev 5.1.58-1ubuntu1

Bug #912487 reported by Simon Huerlimann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-5.5 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Updating from oneiric to precise I got the following error:

Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.17-4ubuntu6_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/mysql-server-5.5_5.5.17-4ubuntu6_i386.deb (--unpack):
 trying to overwrite '/usr/lib/mysql/plugin/ha_example.so', which is also in package libmysqlclient-dev 5.1.58-1ubuntu1

Looks like mysql-server-5.5 should get a 'conflict' declaration on older libmysqlclient-dev packages.

Cheers
Simon

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: mysql-server-5.5 (not installed)
ProcVersionSignature: Ubuntu 3.0.0-14.23-generic 3.0.9
Uname: Linux 3.0.0-14-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Thu Jan 5 21:34:57 2012
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: mysql-5.5
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Simon Huerlimann (huerlisi) wrote :

New package libmysqlclient-dev_5.5.17-4ubuntu6 from precise does not have the file conflict (as expected:-)

To anyone who runs into this problem: try the following:

sudo dpkg -r libmysqlclient-dev
sudo apt-get -f install
sudo apt-get install libmysqlclient-dev

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hi Simon!

This is indeed the case, though a Breaks/Replaces should work fine to gracefully move ownership of these plugin files from libmysqlclient-dev to its proper place in mysql-server-5.5. Some testing needs to be done to make sure people won't have mysql-server-5.5 pulled in when they upgrade and only have libmysqlclient-dev.

Changed in mysql-5.5 (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in mysql-5.5 (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mysql-5.5 - 5.5.20-0ubuntu1

---------------
mysql-5.5 (5.5.20-0ubuntu1) precise; urgency=low

  * New upstream release.
  * d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
    fully stopped before shutdown commences. (LP: #688541) Also simplify
    start on as it is redundant.
  * d/control: Depend on upstart version which has apparmor profile load
    script to prevent failure on upgrade from lucid to precise.
    (LP: #907465)
  * d/apparmor-profile: need to allow /run since that is the true path
    of /var/run files. (LP: #917542)
  * d/control: mysql-server-5.5 has files in it that used to be owned
    by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
  * d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
    change compiler back to system default.
  * d/rules: Turn off embedded libedit/readline.(Closes: #659566)
 -- Clint Byrum <email address hidden> Tue, 14 Feb 2012 23:59:22 -0800

Changed in mysql-5.5 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.