# Hash sum mismatch for percona-xtradb-cluster-5.7-dbg\_5.7.31-31.45-3.xenial\_amd64.deb

**URL:** <https://forums.percona.com/t/hash-sum-mismatch-for-percona-xtradb-cluster-5-7-dbg-5-7-31-31-45-3-xenial-amd64-deb/8341>\
**Category:** Percona Server for MySQL 5.7\
**Tags:** percona\
**Created:** [December 4, 2020, 4:04am UTC](https://forums.percona.com/t/hash-sum-mismatch-for-percona-xtradb-cluster-5-7-dbg-5-7-31-31-45-3-xenial-amd64-deb/8341 "2020-12-04T04:04:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CostelL](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@CostelL](https://forums.percona.com/u/CostelL)\
**Post date:** [December 4, 2020, 4:04am UTC](https://forums.percona.com/t/hash-sum-mismatch-for-percona-xtradb-cluster-5-7-dbg-5-7-31-31-45-3-xenial-amd64-deb/8341/1 "2020-12-04T04:04:14Z")

</div>

Hello,

I am trying to install this package however we are getting an error:

```auto
apt-get install percona-xtradb-cluster-5.7

Reading package lists... Done

Building dependency tree

Reading state information... Done

Note, selecting 'percona-xtradb-cluster-5.7-dbg' for regex 'percona-xtradb-cluster-5.7'

The following NEW packages will be installed:

 percona-xtradb-cluster-5.7-dbg

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

1 not fully installed or removed.

Need to get 191 MB of archives.

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

WARNING: The following packages cannot be authenticated!

 percona-xtradb-cluster-5.7-dbg

Install these packages without verification? [y/N] y

Get:1 http://repo.percona.com/apt xenial/main amd64 percona-xtradb-cluster-5.7-dbg amd64 5.7.31-31.45-3.xenial [191 MB]

Err:1 http://repo.percona.com/apt xenial/main amd64 percona-xtradb-cluster-5.7-dbg amd64 5.7.31-31.45-3.xenial

 Hash Sum mismatch

Fetched 167 MB in 7s (21.4 MB/s)

E: Failed to fetch http://repo.percona.com/apt/pool/main/p/percona-xtradb-cluster-5.7/percona-xtradb-cluster-5.7-dbg_5.7.31-31.45-3.xenial_amd64.deb Hash Sum mismatch

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

```

---

<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 4, 2020, 5:29am UTC](https://forums.percona.com/t/hash-sum-mismatch-for-percona-xtradb-cluster-5-7-dbg-5-7-31-31-45-3-xenial-amd64-deb/8341/2 "2020-12-04T05:29:58Z")

</div>

Hi @CostelLI tried to reproduce your issue but without success.

What commands I have executed to reproduce:

```auto
wget https://repo.percona.com/prel/apt/pool/main/p/percona-release/percona-release_1.0-25.generic_all.deb
sudo dpkg -i percona-release_1.0-25.generic_all.deb
sudo apt update
sudo apt-get install percona-xtradb-cluster-5.7

```

What I get in result:

```auto
vagrant@ubuntu-xenial:~$ dpkg -l | grep percona 
ii percona-release 1.0-25.generic all Package to install Percona gpg key and AP
T repos 
ii percona-xtrabackup-24 2.4.21-1.xenial amd64 Open source backup tool for InnoDB and Xt
raDB 
ii percona-xtradb-cluster-5.7-dbg 5.7.31-31.45-3.xenial amd64 Debugging package for Percona XtraDB Clus
ter 
ii percona-xtradb-cluster-client-5.7 5.7.31-31.45-3.xenial amd64 Percona XtraDB Cluster database client bi
naries 
ii percona-xtradb-cluster-common-5.7 5.7.31-31.45-3.xenial amd64 Percona XtraDB Cluster database common fi
les (e.g. /etc/mysql/my.cnf) 
ii percona-xtradb-cluster-server-5.7 5.7.31-31.45-3.xenial amd64 Percona XtraDB Cluster database server bi
naries

```

---

<div class="post-metadata">

**Author:** ![CostelL](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@CostelL](https://forums.percona.com/u/CostelL)\
**Post date:** [December 4, 2020, 6:04am UTC](https://forums.percona.com/t/hash-sum-mismatch-for-percona-xtradb-cluster-5-7-dbg-5-7-31-31-45-3-xenial-amd64-deb/8341/3 "2020-12-04T06:04:56Z")

</div>

Hello,

Maybe it’s the repo that I use. I have this:

```auto
cat /etc/apt/sources.list.d/percona.list
# PERCONA repo
deb http://repo.percona.com/apt xenial main
deb-src http://repo.percona.com/apt xenial main

```

The helper package seems to create (notice the extra percona in the path):

```auto
deb http://repo.percona.com/percona/apt xenial main

```

From the above it worked well.  
I was trying to install:

```auto
percona-xtradb-cluster-full-57

```

Now I switched to install:

```auto
percona-xtradb-cluster-server-5.7

```

and this is ok because the “-dbg” is not a dependency.

We are doing the install automatically (via salt-stack) and it has been like it is now for a long time. I know for sure that it worked a couple of weeks ago because we did the exact same thing and there was no failure. I guess I just need to update to the new repo path and/or rebuild the install to use the helper package, but maybe there are others that use the old paths.

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:** [December 4, 2020, 6:39am UTC](https://forums.percona.com/t/hash-sum-mismatch-for-percona-xtradb-cluster-5-7-dbg-5-7-31-31-45-3-xenial-amd64-deb/8341/4 "2020-12-04T06:39:19Z")

</div>

Usually such issue might appear in the following case:

packages in repo were updated but apt-cache on the system was not updated.

So try to perform apt-get update before the installation of dbg package

---

<div class="post-metadata">

**Author:** ![CostelL](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@CostelL](https://forums.percona.com/u/CostelL)\
**Post date:** [December 4, 2020, 8:27am UTC](https://forums.percona.com/t/hash-sum-mismatch-for-percona-xtradb-cluster-5-7-dbg-5-7-31-31-45-3-xenial-amd64-deb/8341/5 "2020-12-04T08:27:59Z")

</div>

I had run it before (and anyway salt should have run it after adding the repo), however now I cannot reproduce it anymore.

I see that we get different IP addresses when doing dig, so maybe I was just getting to a bad mirror as you suggested.

Anyway I consider my question asked. Really really appreciate the quick responses.

---

<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 4, 2020, 8:30am UTC](https://forums.percona.com/t/hash-sum-mismatch-for-percona-xtradb-cluster-5-7-dbg-5-7-31-31-45-3-xenial-amd64-deb/8341/6 "2020-12-04T08:30:13Z")

</div>

@CostelL

I am glad that it works for you now. If you have any other questions - please create new topics 🙂
