Not the answer you need?
Register and ask your own question!

ERROR on apt --fix-broken install : trying to overwrite ...

Tim HTim H EntrantLegacy User Role Novice
Hi All - I am new to Percona / Ubuntu, having been required to change from Centos for other reasons. After carefully folloing the Centos install and configure I had no issues.

I am working with Ubuntu 16.04 latest updates.

I am struggling to achieve install of xtradb xluster, and keep cycling around the apt-get install / uninstall and apt --fix-broken install.

I get : ERROR on apt --fix-broken install : trying to overwrite '/usr/share/mysql/bulgarian/errmsg.sys',

The install bombed out at this point:




Unpacking percona-xtradb-cluster-full-57 (5.7.25-31.35-1.bionic) ...
Errors were encountered while processing:
/tmp/apt-dpkg-install-yw7Fvv/0-percona-xtradb-cluster-server-5.7_5.7.25-31.35-1.bionic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I then ran a remove:

[email protected]:~# sudo apt-get remove percona-xtradb-cluster-full-57
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
percona-xtradb-cluster-5.7-dbg : Depends: percona-xtradb-cluster-server-5.7 (= 5.7.25-31.35-1.bionic) but it is not going to be installed
percona-xtradb-cluster-test-5.7 : Depends: percona-xtradb-cluster-server-5.7 (>= 5.7.25-31.35-1.bionic) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
[email protected]:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libevent-core-2.1-6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
percona-xtradb-cluster-server-5.7
Suggested packages:
tinyca pv
The following NEW packages will be installed
percona-xtradb-cluster-server-5.7
0 to upgrade, 1 to newly install, 0 to remove and 6 not to upgrade.
11 not fully installed or removed.
Need to get 0 B/12.6 MB of archives.
After this operation, 105 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Abort.


I then ran apt --fix-broken install:

[email protected]:/usr/share/mysql/bulgarian# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libevent-core-2.1-6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
percona-xtradb-cluster-server-5.7
Suggested packages:
tinyca pv
The following NEW packages will be installed
percona-xtradb-cluster-server-5.7
0 to upgrade, 1 to newly install, 0 to remove and 6 not to upgrade.
11 not fully installed or removed.
Need to get 0 B/12.6 MB of archives.
After this operation, 105 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 100153 files and directories currently installed.)
Preparing to unpack .../percona-xtradb-cluster-server-5.7_5.7.25-31.35-1.bionic_amd64.deb ...
.
Unpacking percona-xtradb-cluster-server-5.7 (5.7.25-31.35-1.bionic) ...
dpkg: error processing archive /var/cache/apt/archives/percona-xtradb-cluster-server-5.7_5.7.25-31.35-1.bionic_amd64.deb (--unpack):
trying to overwrite '/usr/share/mysql/bulgarian/errmsg.sys', which is also in package percona-server-common 8.0.15-6-1.bionic
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/percona-xtradb-cluster-server-5.7_5.7.25-31.35-1.bionic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is the third server with a clean install of the OS that I have tried, they all end up with a similar result which is where the apt --fix-broken install ends up failing to overwrite a shared file.

I would really appreciate some help with this one.

Many thanks

Tim H
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.