# Dpkg error installing libperconaserverclient20-dev on Ubuntu 20.04

**URL:** <https://forums.percona.com/t/dpkg-error-installing-libperconaserverclient20-dev-on-ubuntu-20-04/8323>\
**Category:** Percona Server for MySQL 5.7\
**Created:** [November 28, 2020, 3:51am UTC](https://forums.percona.com/t/dpkg-error-installing-libperconaserverclient20-dev-on-ubuntu-20-04/8323 "2020-11-28T03:51:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vrcsts](https://avatars.discourse-cdn.com/v4/letter/v/58f4c7/32.png) [@vrcsts](https://forums.percona.com/u/vrcsts)\
**Post date:** [November 28, 2020, 3:51am UTC](https://forums.percona.com/t/dpkg-error-installing-libperconaserverclient20-dev-on-ubuntu-20-04/8323/1 "2020-11-28T03:51:04Z")

</div>

Hello,

When installing a new Percona Cluster server with Ubuntu 20.04, I’m getting a somewhat odd error if I try to install “libperconaserverclient20-dev” to get the “mysql\_config\_editor” binary.

I can do “apt install percona-xtradb-cluster-server-5.7” and it does install correctly.

Then, I try to install “libperconaserverclient20-dev”. This one depends on libperconaserverclient20 and percona-server-common-5.7. This last one can’t be installed if “percona-xtradb-cluster-server-5.7” is installed too:

* * *

apt install libperconaserverclient20-dev

Reading package lists… Done

Building dependency tree

Reading state information… Done

The following package was automatically installed and is no longer required:

libboost-program-options1.71.0

Use ‘apt autoremove’ to remove it.

The following additional packages will be installed:

libperconaserverclient20 percona-server-common-5.7

The following NEW packages will be installed:

libperconaserverclient20 libperconaserverclient20-dev percona-server-common-5.7

0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.

Need to get 0 B/1918 kB of archives.

After this operation, 16.4 MB of additional disk space will be used.

Do you want to continue? [Y/n]

Selecting previously unselected package percona-server-common-5.7.

(Reading database … 160913 files and directories currently installed.)

Preparing to unpack …/percona-server-common-5.7\_5.7.32-35-1.focal\_amd64.deb …

Unpacking percona-server-common-5.7 (5.7.32-35-1.focal) …

dpkg: error processing archive /var/cache/apt/archives/percona-server-common-5.7\_5.7.32-35-1.focal\_amd64.deb (–unpack):

trying to overwrite ‘/usr/include/coredumper/coredumper.h’, which is also in package percona-xtradb-cluster-server-5.7 5.7.31-31.45-3.focal

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

Selecting previously unselected package libperconaserverclient20:amd64.

Preparing to unpack …/libperconaserverclient20\_5.7.32-35-1.focal\_amd64.deb …

Unpacking libperconaserverclient20:amd64 (5.7.32-35-1.focal) …

Selecting previously unselected package libperconaserverclient20-dev.

Preparing to unpack …/libperconaserverclient20-dev\_5.7.32-35-1.focal\_amd64.deb …

Unpacking libperconaserverclient20-dev (5.7.32-35-1.focal) …

Errors were encountered while processing:

/var/cache/apt/archives/percona-server-common-5.7\_5.7.32-35-1.focal\_amd64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

* * *

I have checked that all related packages are provided by Percona’s repo. This machine only has Ubuntu default repos and the ones set up by percona-release\_latest.focal\_all.deb.

Looks like there is an issue with those packages. Can anyone check?

Thank you.

---

<div class="post-metadata">

**Author:** ![Evgeniy\_Patlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/evgeniy_patlan/32/41_2.png) [@Evgeniy\_Patlan](https://forums.percona.com/u/Evgeniy_Patlan)\
**Post date:** [November 30, 2020, 4:34pm UTC](https://forums.percona.com/t/dpkg-error-installing-libperconaserverclient20-dev-on-ubuntu-20-04/8323/2 "2020-11-30T16:34:36Z")

</div>

Hi @vrcsts

Thanks for your report.

Yes such issue can appear and if you need to install libperconaserverclient20 - it is recommended to download it from website: [https://downloads.percona.com/downloads/Percona-XtraDB-Cluster-57/Percona-XtraDB-Cluster-5.7.31-31.45-3/binary/debian/focal/x86\_64/libperconaserverclient20-dev\_5.7.31-31.45-3.focal\_amd64.deb](https://downloads.percona.com/downloads/Percona-XtraDB-Cluster-57/Percona-XtraDB-Cluster-5.7.31-31.45-3/binary/debian/focal/x86_64/libperconaserverclient20-dev_5.7.31-31.45-3.focal_amd64.deb) [https://downloads.percona.com/downloads/Percona-XtraDB-Cluster-57/Percona-XtraDB-Cluster-5.7.31-31.45-3/binary/debian/focal/x86\_64/libperconaserverclient20\_5.7.31-31.45-3.focal\_amd64.deb](https://downloads.percona.com/downloads/Percona-XtraDB-Cluster-57/Percona-XtraDB-Cluster-5.7.31-31.45-3/binary/debian/focal/x86_64/libperconaserverclient20_5.7.31-31.45-3.focal_amd64.deb)

I have checked and improve our release process so starting from next release such issue should not appear and it will be possible to install ibperconaserverclient package from our PXC-57 repository.

One more time - thank you for the report as it helps making our products better 🙂

---

<div class="post-metadata">

**Author:** ![vrcsts](https://avatars.discourse-cdn.com/v4/letter/v/58f4c7/32.png) [@vrcsts](https://forums.percona.com/u/vrcsts)\
**Post date:** [December 7, 2020, 3:59am UTC](https://forums.percona.com/t/dpkg-error-installing-libperconaserverclient20-dev-on-ubuntu-20-04/8323/3 "2020-12-07T03:59:41Z")

</div>

Manually installing both packages works ok and provide the mysql\_config\_editor binary:

dpkg -i libperconaserverclient20\_5.7.31-31.45-3.focal\_amd64.deb libperconaserverclient20-dev\_5.7.31-31.45-3.focal\_amd64.deb

Still, after an “apt update”, apt asks to upgrade with the version in the repo:

* * *

# apt list --upgradable

Listing… Done

libperconaserverclient20-dev/unknown 5.7.32-35-1.focal amd64 [upgradable from: 5.7.31-31.45-3.focal]

libperconaserverclient20/unknown 5.7.32-35-1.focal amd64 [upgradable from: 5.7.31-31.45-3.focal]

* * *

Had to mark both on hold:

* * *

# apt-mark hold libperconaserverclient20-dev libperconaserverclient20

libperconaserverclient20-dev set on hold.

libperconaserverclient20 set on hold.

* * *

Regards

---

<div class="post-metadata">

**Author:** ![Evgeniy\_Patlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/evgeniy_patlan/32/41_2.png) [@Evgeniy\_Patlan](https://forums.percona.com/u/Evgeniy_Patlan)\
**Post date:** [December 8, 2020, 6:22am UTC](https://forums.percona.com/t/dpkg-error-installing-libperconaserverclient20-dev-on-ubuntu-20-04/8323/4 "2020-12-08T06:22:02Z")

</div>

Hi @vrcsts

As I told you in my previous comment - the issue in repo would be fixed once we issue new PXC-57 release

---

<div class="post-metadata">

**Author:** ![vrcsts](https://avatars.discourse-cdn.com/v4/letter/v/58f4c7/32.png) [@vrcsts](https://forums.percona.com/u/vrcsts)\
**Post date:** [December 3, 2021, 12:15pm UTC](https://forums.percona.com/t/dpkg-error-installing-libperconaserverclient20-dev-on-ubuntu-20-04/8323/5 "2021-12-03T12:15:49Z")

</div>

Hello,

This is still an issue with version 5.7.35-38-1.bionic, maybe with later ones too. I makes harder to update servers as I have to sort this out every time I need to update each server or keep those packages on hold.

Any news about when this can be solved in a new PXC-57 release?

Regards.

---

<div class="post-metadata">

**Author:** ![Evgeniy\_Patlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/evgeniy_patlan/32/41_2.png) [@Evgeniy\_Patlan](https://forums.percona.com/u/Evgeniy_Patlan)\
**Post date:** [December 3, 2021, 1:07pm UTC](https://forums.percona.com/t/dpkg-error-installing-libperconaserverclient20-dev-on-ubuntu-20-04/8323/6 "2021-12-03T13:07:07Z")

</div>

Hi @vrcsts

It is necessary to use pxc-57 repository instead of original  
How to do this?  
sudo percona-release setup pxc-57  
This command will disable all percona repos and enable only pxc-57 and pxb-24 repos

---

<div class="post-metadata">

**Author:** ![Bhargav\_Naidu\_M](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/bhargav_naidu_m/32/9767_2.png) [@Bhargav\_Naidu\_M](https://forums.percona.com/u/Bhargav_Naidu_M)\
**Post date:** [March 18, 2023, 10:23am UTC](https://forums.percona.com/t/dpkg-error-installing-libperconaserverclient20-dev-on-ubuntu-20-04/8323/7 "2023-03-18T10:23:23Z")

</div>

I’ve installed mydumper on my production server for taking full backup.

But ,I’m facing issue with mysql libraries. can someone please help me here…

root@xxxxxxxx:~# mydumper -V  
mydumper: error while loading shared libraries: libmariadb.so.3: cannot open shared object file: No such file or directory  
root@xxxxxxxx:~#

root@xxxxxxxx:~# sudo apt install libmariadb-dev  
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:  
libmariadb-dev : Depends: libmariadb3 (= 3.0.3-1build1) but it is not going to be installed  
libperconaserverclient20 : Depends: percona-server-common-5.7 (= 5.7.41-44-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).  
root@xxxxxx:~#

It’s a production mysql instance, EC2 ubuntu 18.04 instance, I need to fix without Mysql service down.

---

<div class="post-metadata">

**Author:** ![Bhargav\_Naidu\_M](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/bhargav_naidu_m/32/9767_2.png) [@Bhargav\_Naidu\_M](https://forums.percona.com/u/Bhargav_Naidu_M)\
**Post date:** [March 18, 2023, 4:11pm UTC](https://forums.percona.com/t/dpkg-error-installing-libperconaserverclient20-dev-on-ubuntu-20-04/8323/8 "2023-03-18T16:11:32Z")

</div>

Hi @Evgeniy_Patlan

Running this ‘sudo percona-release setup pxc-57’ , Will cause any mysql service outage if we run on already installed and running production mysql server ?

The problem on my case is, Mydumper command failing with below message.

root@xxxxxxxx:~# mydumper -V  
mydumper: error while loading shared libraries: libmariadb.so.3: cannot open shared object file: No such file or directory  
root@xxxxxxxx:~#

Tried to install maria libraries. using → sudo apt install libmariadb-dev, it’s giving me the actual issue which you were speaking on this forum…

oot@xxxxxxxx:~# sudo apt install libmariadb-dev  
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:  
libmariadb-dev : Depends: libmariadb3 (= 3.0.3-1build1) but it is not going to be installed  
libperconaserverclient20 : Depends: percona-server-common-5.7 (= 5.7.41-44-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).  
root@xxxxxx:~#

It’s a production mysql instance, EC2 ubuntu 18.04 instance, I need to fix without Mysql service down.

---

<div class="post-metadata">

**Author:** ![Evgeniy\_Patlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/evgeniy_patlan/32/41_2.png) [@Evgeniy\_Patlan](https://forums.percona.com/u/Evgeniy_Patlan)\
**Post date:** [March 20, 2023, 8:11am UTC](https://forums.percona.com/t/dpkg-error-installing-libperconaserverclient20-dev-on-ubuntu-20-04/8323/9 "2023-03-20T08:11:07Z")

</div>

hi @Bhargav_Naidu_M  
percona-release doesn’t perform any actions with databases. This script only install needed repositories
