[MDEV-4266] Server upgrade via apt-get install does not work Created: 2013-03-12  Updated: 2014-11-27  Resolved: 2013-05-15

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.30
Fix Version/s: 5.5.31

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: packaging
Environment:

deb-based


Issue Links:
Relates

 Description   

If server of a version X (e.g. 5.5.29) is already installed, an attempt to install server version X+1 (5.5.30 in this case) does not fail, but does not work either:

$ sudo apt-get install mariadb-server mariadb-client
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  mariadb-client mariadb-server
2 upgraded, 0 newly installed, 0 to remove and 62 not upgraded.
Need to get 5,810 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ftp.osuosl.org/pub/mariadb/repo/5.5.30/debian/ squeeze/main mariadb-client all 5.5.30-mariadb1~squeeze [2,840 B]
Get:2 http://ftp.osuosl.org/pub/mariadb/repo/5.5.30/debian/ squeeze/main mariadb-server all 5.5.30-mariadb1~squeeze [2,970 B]
Fetched 5,810 B in 1s (5,604 B/s)    
Reading changelogs... Done
(Reading database ... 133621 files and directories currently installed.)
Preparing to replace mariadb-client 5.5.29-mariadb1~squeeze (using .../mariadb-client_5.5.30-mariadb1~squeeze_all.deb) ...
Unpacking replacement mariadb-client ...
Preparing to replace mariadb-server 5.5.29-mariadb1~squeeze (using .../mariadb-server_5.5.30-mariadb1~squeeze_all.deb) ...
Unpacking replacement mariadb-server ...
Setting up mariadb-client (5.5.30-mariadb1~squeeze) ...
Setting up mariadb-server (5.5.30-mariadb1~squeeze) ...
 
$ /usr/sbin/mysqld --version
/usr/sbin/mysqld  Ver 5.5.29-MariaDB-mariadb1~squeeze-log for debian-linux-gnu on x86_64 (mariadb.org binary distribution)

A workaround is to run apt-get install mariadb-server-5.5

As Daniel found out, the issue is with the mariadb-server deb package, it has "Depends: mariadb-server-5.5" but there's no version, so any version of the mariadb-server-5.5 package is satisfying the dependency (in our case, version 5.5.29).



 Comments   
Comment by Jean Weisbuch [ 2014-11-27 ]

There is a whole section about this bug on the KB at the "Installing MariaDB .deb Files" page : https://mariadb.com/kb/en/mariadb/documentation/getting-started/binary-packages/installing-mariadb-deb-files/#upgrading-mariadb-server-and-mariadb-client-packages

Just to be 100% sure, is it ok to remove the section of the doc as the bug is closed and it shouldnt happen anymore?

Generated at Thu Feb 08 06:55:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.