Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4266

Server upgrade via apt-get install does not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.30
    • Fix Version/s: 5.5.31
    • Component/s: None
    • Labels:
    • Environment:
      deb-based

      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).

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            jb-boin Jean Weisbuch added a comment -

            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?

            Show
            jb-boin Jean Weisbuch added a comment - 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?

              People

              • Assignee:
                holyfoot Alexey Botchkov
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days
                  3d