[MDEV-8462] Unable to upgrade to latest version Created: 2015-07-14  Updated: 2016-11-25  Resolved: 2016-11-25

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Platform Debian
Affects Version/s: 10.0.20
Fix Version/s: 10.2.3

Type: Bug Priority: Major
Reporter: Chris Dovetail Assignee: Otto Kekäläinen
Resolution: Fixed Votes: 0
Labels: None
Environment:

Xubuntu 15.04


Issue Links:
Blocks
is blocked by MDEV-6284 Merge downstream Debian/Ubuntu packag... Closed

 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)



 Comments   
Comment by Elena Stepanova [ 2015-07-14 ]

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.

Comment by Chris Dovetail [ 2015-07-14 ]

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

Comment by Elena Stepanova [ 2015-07-14 ]

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

Comment by Chris Dovetail [ 2015-07-14 ]

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)

Comment by Elena Stepanova [ 2015-07-14 ]

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.

Comment by Otto Kekäläinen [ 2015-07-21 ]

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.

Comment by Chris Dovetail [ 2015-07-21 ]

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.

Comment by Otto Kekäläinen [ 2016-11-25 ]

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.

Generated at Thu Feb 08 07:27:20 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.