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

LP:730557 - apt-get install mariadb-server-5.2 fails on Debian squeeze

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Two users reported this problem.

      We do not see it in our automatic install/upgrade test, so it may be specific to a particular set of installed packages, or maybe the VMs in the Buildbot need to be upgraded to latest version of squeeze to see it.

      I will try to reproduce manually.

      The problem is not that package mariadb-common is missing (it is provided by the mysql-common package), but that apt-get does not automatically select the right dependency resolution. Another user reported that a workaround was to use aptitude to install, deny the first solution it proposes, and accept the second solution:

          $ sudo aptitude install mariadb-server-5.2 mysql-common
          ...
          The following actions will resolve these dependencies:
        Keep the following packages at their current version:
          1) libmariadbclient16 [Not Installed]
          2) mariadb-client-5.2 [Not Installed]
          3) mariadb-client-core-5.2 [Not Installed]
          4) mariadb-server-5.2 [Not Installed]
          5) mariadb-server-core-5.2 [Not Installed]
          Accept this solution? [Y/n/q/?] n

          The following actions will resolve these dependencies:
        Install the following packages:
          1) libmysqlclient16 [5.2.5-mariadb99~squeeze (<NULL>)]

        Upgrade the following packages:
          2) mysql-common [5.1.49-3 (now, stable) -> 5.2.5-mariadb99~squeeze (<NULL>)]

          Accept this solution? [Y/n/q/?] y

      Here is a description of the problem from Oliver Schneider:

      I have tried to install MariaDB (tried both 5.1 and
      5.2) on a Debian 6.0 system, following closely the steps described here:

        http://kb.askmonty.org/v/installing-mariadb-deb-files

      However, for both cases apt will complain about a missing package
      mariadb-common and indeed there is no such package in either one of the
      package repositories.

      Any ideas as to what I'm doing wrong? There is a package called
      mysql-common_5.1.55-mariadb98~squeeze_all.deb for 5.1 and
      mysql-common_5.2.5-mariadb99~squeeze_all.deb for 5.2 in the
      repositories, but apparently the other .deb references a mariadb-common ...

      Thanks in advance,

      // Oliver

      PS: Exact messages:

      ----------------------------
      $ apt-get install mariadb-server-5.2
      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:
       mariadb-server-5.2 : Depends: mariadb-client-5.2 (>=
      5.2.5-mariadb99~squeeze) but it is not going to be installed
                            Depends: libmariadbclient16 (>= 5.1.21-1) but it
      is not going to be installed
                            Depends: mariadb-server-core-5.2 (>=
      5.2.5-mariadb99~squeeze) but it is not going to be installed
                            PreDepends: mariadb-common
      E: Broken packages

      ----------------------------
      $ apt-get install mariadb-server-5.1
      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:
       mariadb-server-5.1 : Depends: mariadb-client-5.1 (>=
      5.1.55-mariadb98~squeeze) but it is not going to be installed
                            Depends: libmariadbclient16 (>= 5.1.21-1) but it
      is not going to be installed
                            Depends: mariadb-server-core-5.1 (>=
      5.1.55-mariadb98~squeeze) but it is not going to be installed
                            PreDepends: mariadb-common
      E: Broken packages

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            timour Timour Katchaounov added a comment -

            Re: apt-get install mariadb-server-5.2 fails on Debian squeeze
            After these attempts, the ubuntu update manager suggested to
            install "MariaDB database client library", when I tried, I got a
            system error message "The package system is broken", with
            the following details:

            The following packages have unmet dependencies:

            libmysqlclient16: Depends: libmariadbclient16 (= 5.3.0-mariadb101~natty) but it is not installed
            mariadb-client-5.3: Depends: mariadb-common but it is a virtual package
            Depends: libmariadbclient16 (>= 5.3.0-mariadb101~natty) but it is not installed
            Depends: mariadb-client-core-5.3 (>= 5.3.0-mariadb101~natty) but 5.3.0-mariadb101~natty is installed
            Depends: zlib1g (>= 1:1.1.4) but 1:1.2.3.4.dfsg-3ubuntu3 is installed
            mariadb-client-core-5.3: Depends: mariadb-common but it is a virtual package
            Depends: libmariadbclient16 (>= 5.3.0-mariadb101~natty) but it is not installed
            Depends: libncurses5 (>= 5.5-5~) but 5.7+20101128-1 is installed
            Depends: libreadline6 (>= 6.0) but 6.2-0ubuntu1 is installed
            Depends: zlib1g (>= 1:1.1.4) but 1:1.2.3.4.dfsg-3ubuntu3 is installed
            mariadb-server-core-5.3: Depends: libwrap0 (>= 7.6-4~) but 7.6.q-19ubuntu1 is installed
            Depends: zlib1g (>= 1:1.2.0) but 1:1.2.3.4.dfsg-3ubuntu3 is installed
            Depends: libmariadbclient16 (>= 5.3.0-mariadb101~natty) but it is not installed

            Show
            timour Timour Katchaounov added a comment - Re: apt-get install mariadb-server-5.2 fails on Debian squeeze After these attempts, the ubuntu update manager suggested to install "MariaDB database client library", when I tried, I got a system error message "The package system is broken", with the following details: The following packages have unmet dependencies: libmysqlclient16: Depends: libmariadbclient16 (= 5.3.0-mariadb101~natty) but it is not installed mariadb-client-5.3: Depends: mariadb-common but it is a virtual package Depends: libmariadbclient16 (>= 5.3.0-mariadb101~natty) but it is not installed Depends: mariadb-client-core-5.3 (>= 5.3.0-mariadb101~natty) but 5.3.0-mariadb101~natty is installed Depends: zlib1g (>= 1:1.1.4) but 1:1.2.3.4.dfsg-3ubuntu3 is installed mariadb-client-core-5.3: Depends: mariadb-common but it is a virtual package Depends: libmariadbclient16 (>= 5.3.0-mariadb101~natty) but it is not installed Depends: libncurses5 (>= 5.5-5~) but 5.7+20101128-1 is installed Depends: libreadline6 (>= 6.0) but 6.2-0ubuntu1 is installed Depends: zlib1g (>= 1:1.1.4) but 1:1.2.3.4.dfsg-3ubuntu3 is installed mariadb-server-core-5.3: Depends: libwrap0 (>= 7.6-4~) but 7.6.q-19ubuntu1 is installed Depends: zlib1g (>= 1:1.2.0) but 1:1.2.3.4.dfsg-3ubuntu3 is installed Depends: libmariadbclient16 (>= 5.3.0-mariadb101~natty) but it is not installed
            Hide
            timour Timour Katchaounov added a comment -

            Re: apt-get install mariadb-server-5.2 fails on Debian squeeze
            After the above errors, I accepted the suggestion of apt to run:
            apt-get -f install

            This command seemed to fix the problem. After this command I ran:
            apt-get install mysql-client mysql-server
            which installed some more packages.

            Now I could start mariadb via
            sudo /etc/init.d/mysql start.

            Show
            timour Timour Katchaounov added a comment - Re: apt-get install mariadb-server-5.2 fails on Debian squeeze After the above errors, I accepted the suggestion of apt to run: apt-get -f install This command seemed to fix the problem. After this command I ran: apt-get install mysql-client mysql-server which installed some more packages. Now I could start mariadb via sudo /etc/init.d/mysql start.
            Hide
            knielsen Kristian Nielsen added a comment -

            Re: apt-get install mariadb-server-5.2 fails on Debian squeeze
            Timour: Your problem is not related to this bug. See instead lp:815198

            Show
            knielsen Kristian Nielsen added a comment - Re: apt-get install mariadb-server-5.2 fails on Debian squeeze Timour: Your problem is not related to this bug. See instead lp:815198
            Hide
            ratzpo Rasmus Johansson added a comment -

            Re: apt-get install mariadb-server-5.2 fails on Debian squeeze
            I had the same, but fixed it:

            ~# apt-get install mariadb-server-5.2
            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:
            mariadb-server-5.2 : Depends: mariadb-client-5.2 (>= 5.2.10-mariadb107~squeeze) but it is not going to be installed
            Depends: libmariadbclient16 (>= 5.1.21-1) but it is not going to be installed
            Depends: mariadb-server-core-5.2 (>= 5.2.10-mariadb107~squeeze) but it is not going to be installed
            PreDepends: mariadb-common
            E: Broken packages

            The problem is with mariadb-common:

            root@testzarafa3:~# apt-get install mariadb-common
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            Package mariadb-common is a virtual package provided by:
            mysql-common 5.2.10-mariadb107~squeeze [Not candidate version]

            To fix it:

            root@testzarafa3:~# apt-get remove mysql-common
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            The following packages will be REMOVED:
            libmysqlclient12 libmysqlclient14 libmysqlclient15-dev libmysqlclient15off mysql-common
            0 upgraded, 0 newly installed, 5 to remove and 190 not upgraded.
            After this operation, 28.2 MB disk space will be freed.
            Do you want to continue [Y/n]? y
            (Reading database ... 178116 files and directories currently installed.)
            Removing libmysqlclient12 ...
            Removing libmysqlclient14 ...
            Removing libmysqlclient15-dev ...
            Removing libmysqlclient15off ...
            Removing mysql-common ...
            Processing triggers for man-db ...

            and then it works:

            ~# apt-get install mariadb-server-5.2
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            The following extra packages will be installed:
            libdbd-mysql-perl libmariadbclient16 libmysqlclient16 mariadb-client-5.2 mariadb-client-core-5.2 mariadb-server-core-5.2 mysql-common
            Suggested packages:
            tinyca mariadb-test
            The following NEW packages will be installed:
            libdbd-mysql-perl libmariadbclient16 libmysqlclient16 mariadb-client-5.2 mariadb-client-core-5.2 mariadb-server-5.2 mariadb-server-core-5.2 mysql-common
            0 upgraded, 8 newly installed, 0 to remove and 190 not upgraded.
            Need to get 21.3 MB of archives.
            After this operation, 47.8 MB of additional disk space will be used.

            Show
            ratzpo Rasmus Johansson added a comment - Re: apt-get install mariadb-server-5.2 fails on Debian squeeze I had the same, but fixed it: ~# apt-get install mariadb-server-5.2 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: mariadb-server-5.2 : Depends: mariadb-client-5.2 (>= 5.2.10-mariadb107~squeeze) but it is not going to be installed Depends: libmariadbclient16 (>= 5.1.21-1) but it is not going to be installed Depends: mariadb-server-core-5.2 (>= 5.2.10-mariadb107~squeeze) but it is not going to be installed PreDepends: mariadb-common E: Broken packages The problem is with mariadb-common: root@testzarafa3:~# apt-get install mariadb-common Reading package lists... Done Building dependency tree Reading state information... Done Package mariadb-common is a virtual package provided by: mysql-common 5.2.10-mariadb107~squeeze [Not candidate version] To fix it: root@testzarafa3:~# apt-get remove mysql-common Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: libmysqlclient12 libmysqlclient14 libmysqlclient15-dev libmysqlclient15off mysql-common 0 upgraded, 0 newly installed, 5 to remove and 190 not upgraded. After this operation, 28.2 MB disk space will be freed. Do you want to continue [Y/n] ? y (Reading database ... 178116 files and directories currently installed.) Removing libmysqlclient12 ... Removing libmysqlclient14 ... Removing libmysqlclient15-dev ... Removing libmysqlclient15off ... Removing mysql-common ... Processing triggers for man-db ... and then it works: ~# apt-get install mariadb-server-5.2 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libdbd-mysql-perl libmariadbclient16 libmysqlclient16 mariadb-client-5.2 mariadb-client-core-5.2 mariadb-server-core-5.2 mysql-common Suggested packages: tinyca mariadb-test The following NEW packages will be installed: libdbd-mysql-perl libmariadbclient16 libmysqlclient16 mariadb-client-5.2 mariadb-client-core-5.2 mariadb-server-5.2 mariadb-server-core-5.2 mysql-common 0 upgraded, 8 newly installed, 0 to remove and 190 not upgraded. Need to get 21.3 MB of archives. After this operation, 47.8 MB of additional disk space will be used.
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 730557

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 730557

              People

              • Assignee:
                Unassigned
                Reporter:
                knielsen Kristian Nielsen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: