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

Unable to upgrade to latest version

Details

    Description

      When trying to upgrade I get the following output

      /usr/bin: sudo apt-get upgrade
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      Calculating upgrade... Done
      The following packages have been kept back:
        mariadb-client-10.0 mariadb-client-core-10.0 mariadb-server mariadb-server-10.0
      The following packages will be upgraded:
        mariadb-server-core-10.0
      1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
      Need to get 0 B/4,728 kB of archives.
      After this operation, 1,200 kB of additional disk space will be used.
      Do you want to continue? [Y/n] y
      (Reading database ... 297462 files and directories currently installed.)
      Preparing to unpack .../mariadb-server-core-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb ...
      Unpacking mariadb-server-core-10.0 (10.0.20-0ubuntu0.15.04.1) over (10.0.17+maria-1~utopic) ...
      dpkg: error processing archive /var/cache/apt/archives/mariadb-server-core-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb (--unpack):
       trying to overwrite '/usr/bin/innochecksum', which is also in package mariadb-client-10.0 10.0.17+maria-1~utopic
      dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
      Errors were encountered while processing:
       /var/cache/apt/archives/mariadb-server-core-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)

      Attachments

        Issue Links

          Activity

            otto, as I can see, in our tree innochecksum still belongs to the client package, is it intentionally different in yours?

            chris.dovetail, you are upgrading from MariaDB-distributed packages to Ubuntu-distributed packages, which is okay, but then you should update all of them, I don't think mixing them up is going to work.

            elenst Elena Stepanova added a comment - otto , as I can see, in our tree innochecksum still belongs to the client package, is it intentionally different in yours? chris.dovetail , you are upgrading from MariaDB-distributed packages to Ubuntu-distributed packages, which is okay, but then you should update all of them, I don't think mixing them up is going to work.

            Hi Elana,

            Thank you for the response

            If I understand correctly, I have somehow managed to mix the ubuntu
            server package with the mariab db client package? However you say this
            is ok as long as I update all of them... so how do I do that? I ran
            `sudo apt-get update` and then `sudo apt-get upgrade`, but only the
            Ubuntu packages have any desire to update.

            In your estimation, would it be better for me to uninstall everything
            and attempt to install only the packages from MariaDB?

            Chris

            chris.dovetail Chris Dovetail added a comment - Hi Elana, Thank you for the response If I understand correctly, I have somehow managed to mix the ubuntu server package with the mariab db client package? However you say this is ok as long as I update all of them... so how do I do that? I ran `sudo apt-get update` and then `sudo apt-get upgrade`, but only the Ubuntu packages have any desire to update. In your estimation, would it be better for me to uninstall everything and attempt to install only the packages from MariaDB? Chris

            chris.dovetail, did you try running dist-upgrade instead of upgrade?

            elenst Elena Stepanova added a comment - chris.dovetail , did you try running dist-upgrade instead of upgrade?

            Yes, and I get the same error.

            /usr/bin: sudo apt-get dist-upgrade
            [sudo] password for chris:
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            Calculating upgrade... Done
            The following NEW packages will be installed:
            libterm-readkey-perl
            The following packages will be upgraded:
            mariadb-client-10.0 mariadb-client-core-10.0 mariadb-server
            mariadb-server-10.0 mariadb-server-core-10.0
            5 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
            1 not fully installed or removed.
            Need to get 0 B/11.7 MB of archives.
            After this operation, 4,673 kB disk space will be freed.
            Do you want to continue? [Y/n] y
            Preconfiguring packages ...
            (Reading database ... 297462 files and directories currently installed.)
            Preparing to unpack
            .../mariadb-server-core-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb ...
            Unpacking mariadb-server-core-10.0 (10.0.20-0ubuntu0.15.04.1) over
            (10.0.17+maria-1~utopic) ...
            dpkg: error processing archive
            /var/cache/apt/archives/mariadb-server-core-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb
            (--unpack):
            trying to overwrite '/usr/bin/innochecksum', which is also in package
            mariadb-client-10.0 10.0.17+maria-1~utopic
            dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
            Errors were encountered while processing:
            /var/cache/apt/archives/mariadb-server-core-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb
            E: Sub-process /usr/bin/dpkg returned an error code (1)

            chris.dovetail Chris Dovetail added a comment - Yes, and I get the same error. /usr/bin: sudo apt-get dist-upgrade [sudo] password for chris: Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following NEW packages will be installed: libterm-readkey-perl The following packages will be upgraded: mariadb-client-10.0 mariadb-client-core-10.0 mariadb-server mariadb-server-10.0 mariadb-server-core-10.0 5 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/11.7 MB of archives. After this operation, 4,673 kB disk space will be freed. Do you want to continue? [Y/n] y Preconfiguring packages ... (Reading database ... 297462 files and directories currently installed.) Preparing to unpack .../mariadb-server-core-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb ... Unpacking mariadb-server-core-10.0 (10.0.20-0ubuntu0.15.04.1) over (10.0.17+maria-1~utopic) ... dpkg: error processing archive /var/cache/apt/archives/mariadb-server-core-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb (--unpack): trying to overwrite '/usr/bin/innochecksum', which is also in package mariadb-client-10.0 10.0.17+maria-1~utopic dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/mariadb-server-core-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

            Okay, I see. Then I'll pass your question over to otto, who is an expert at debian packaging and the maintainer of the package set you are trying to upgrade to.

            elenst Elena Stepanova added a comment - Okay, I see. Then I'll pass your question over to otto , who is an expert at debian packaging and the maintainer of the package set you are trying to upgrade to.

            chris.dovetail As Ubuntu 15.04 includes MariaDB packages from Ubuntu, and you have at the same time the mariadb.org repositories enabled, what methods do you use to make sure that the two different packaging of the same program does not interfere with each other? Do you use apt-pinning?

            What if you disable the mariadb.org repositories and only use the Ubuntu provided packages, is the error still there?

            Here are many issues at play, so therefore I ask the questions above instead of directly jumping to the innochecksum overwrite fix.

            otto Otto Kekäläinen added a comment - chris.dovetail As Ubuntu 15.04 includes MariaDB packages from Ubuntu, and you have at the same time the mariadb.org repositories enabled, what methods do you use to make sure that the two different packaging of the same program does not interfere with each other? Do you use apt-pinning? What if you disable the mariadb.org repositories and only use the Ubuntu provided packages, is the error still there? Here are many issues at play, so therefore I ask the questions above instead of directly jumping to the innochecksum overwrite fix.

            No doubt from what you have told me the problem isn't so much with MariaDB or Ubuntu, but just because of conflicts due to my upgrading Ubuntu after having already installed MariaDB.

            So although I can't really answer what happened, I have solved my personal issue. This is a development machine so I simply uninstalled MariaDB completely. I then set up my project in a virtual machine using the MariaDB repositories but running Ubuntu 14.04 so there would be no conflict.

            chris.dovetail Chris Dovetail added a comment - No doubt from what you have told me the problem isn't so much with MariaDB or Ubuntu, but just because of conflicts due to my upgrading Ubuntu after having already installed MariaDB. So although I can't really answer what happened, I have solved my personal issue. This is a development machine so I simply uninstalled MariaDB completely. I then set up my project in a virtual machine using the MariaDB repositories but running Ubuntu 14.04 so there would be no conflict.

            This was fixed in https://github.com/MariaDB/server/commit/e06e455eeaffa04fd551eb0012cd256480b2552a for 10.2. Now you will be able to upgrade from previous releases to 10.2 without this issue. Other upgrade scenarios seem a bit irrelevant now so I am closing the issue.

            otto Otto Kekäläinen added a comment - This was fixed in https://github.com/MariaDB/server/commit/e06e455eeaffa04fd551eb0012cd256480b2552a for 10.2. Now you will be able to upgrade from previous releases to 10.2 without this issue. Other upgrade scenarios seem a bit irrelevant now so I am closing the issue.

            People

              otto Otto Kekäläinen
              chris.dovetail Chris Dovetail
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.