mysql-server-5.1 not installed if only mysql-server-5.0 is installed (and not mysql-server)

Bug #480922 reported by amichair
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Binary package hint: update-manager

I just upgraded Kubuntu 9.04 amd64 to Karmic using update-manager. The update process went smoothly. After restarting, mysql was broken (attempting to start it via /etc/init.d/mysql start showed [fail]). I tried reinstalling it:

sudo apt-get install -f mysql-server-5.0
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:
  mysql-server-5.0: Depends: mysql-server-core-5.0 (>= 5.1.30really5.0.83-0ubuntu3) but it is not going to be installed
E: Broken packages

eventually I upgraded using apt-get install mysql-server-5.1 (which removes mysql-server-5.0), which went smoothly, and after that mysql was running properly. I read in the release notes that update-manager is supposed to automatically upgrade from 5.0 to 5.1, but I guess it somehow got broken along the way.

Revision history for this message
amichair (amichai2) wrote :
Revision history for this message
amichair (amichai2) wrote :
Revision history for this message
amichair (amichai2) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Hi,

From the main.log:
2009-11-11 17:52:12,194 DEBUG Remove: mysql-server-core-5.0 mysql-server-5.0
2009-11-11 17:52:12,194 DEBUG Install: mysql-server-core-5.1 mysql-common

From the apt.log:
Installing mysql-server-core-5.1 as dep of akonadi-server

and then the removal of mysql-server-5.0.

So it appears you don't have the mysql-server metapackage installed and version 5.1 got only
installed as a dependency. I reassign to mysql-server, but it may well be that this not a bug as
such (unless akondai-server needs mysql-server in this case its more like a not strong enough
dependency from akonadi-server)

affects: update-manager (Ubuntu) → mysql-dfsg-5.1 (Ubuntu)
summary: - mysql broken after karmic upgrade
+ mysql transition without meta-package
Revision history for this message
amichair (amichai2) wrote : Re: mysql transition without meta-package

In any case, it should either upgrade to 5.1, or leave 5.0, or ask which to use, or notify that there's a conflict and explain why. A smooth upgrade (as far as the user can tell) followed by a broken mysql which fails to start for no obvious reason (it's not apparent from the logs) is a bug in the upgrade process.

Chuck Short (zulcss)
Changed in mysql-dfsg-5.1 (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Chuck Short (zulcss)
Changed in mysql-dfsg-5.1 (Ubuntu):
importance: Low → Wishlist
status: Confirmed → Triaged
Revision history for this message
Mathias Gug (mathiaz) wrote :

As mentioned by Michael it seems that the mysql-server package wasn't installed. The mysql-server package depends on the latest mysql-server version.

We could add some code to update-manager to make sure that if mysql-server-5.0 is installed, mysql-server-5.1 gets installed as well.

affects: mysql-dfsg-5.1 (Ubuntu) → update-manager (Ubuntu)
summary: - mysql transition without meta-package
+ mysql-server-5.1 not installed if mysql-server-5.0 is installed
summary: - mysql-server-5.1 not installed if mysql-server-5.0 is installed
+ mysql-server-5.1 not installed if only mysql-server-5.0 is installed
+ (and not mysql-server)
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.