# \[Resolved\] Ubuntu Jammy - ppg-12 apt python3-ydiff File has unexpected size

**URL:** <https://forums.percona.com/t/resolved-ubuntu-jammy-ppg-12-apt-python3-ydiff-file-has-unexpected-size/33199>\
**Category:** PostgreSQL\
**Created:** [September 17, 2024, 6:34pm UTC](https://forums.percona.com/t/resolved-ubuntu-jammy-ppg-12-apt-python3-ydiff-file-has-unexpected-size/33199 "2024-09-17T18:34:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![b.ogier](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@b.ogier](https://forums.percona.com/u/b.ogier)\
**Post date:** [September 17, 2024, 6:34pm UTC](https://forums.percona.com/t/resolved-ubuntu-jammy-ppg-12-apt-python3-ydiff-file-has-unexpected-size/33199/1 "2024-09-17T18:34:42Z")

</div>

Hello,

It looks like there is an issue with ppg-12 apt repository

```auto
Err:1 http://repo.percona.com/ppg-12/apt jammy/main amd64 python3-ydiff all 1:1.2-1.jammy
  File has unexpected size (22074 != 22090). Mirror sync in progress? [IP: 10.1.1.20 3128]
  Hashes of expected file:
   - SHA256:ccfefe11ba081b43969d6cdda7276a251b623febb40e6b600b7dafa6d894484e
   - SHA1:e7d7f9c6ac3ccc5b2611aed40197d86d3ab71309 [weak]
   - MD5Sum:c03316576bdc399d804c01152ace1ce3 [weak]
   - Filesize:22090 [weak]
E: Failed to fetch http://repo.percona.com/ppg-12/apt/pool/main/y/ydiff/python3-ydiff_1.2-1.jammy_all.deb File has unexpected size (22074 != 22090). Mirror sync in progress? [IP: 10.1.1.20 3128]
   Hashes of expected file:
    - SHA256:ccfefe11ba081b43969d6cdda7276a251b623febb40e6b600b7dafa6d894484e
    - SHA1:e7d7f9c6ac3ccc5b2611aed40197d86d3ab71309 [weak]
    - MD5Sum:c03316576bdc399d804c01152ace1ce3 [weak]
    - Filesize:22090 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

```

there is indeed a mismatch between the file

```auto
curl -LO http://repo.percona.com/ppg-12/apt/pool/main/y/ydiff/python3-ydiff_1.2-1.jammy_all.deb
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 22074 100 22074 0 0 8199k 0 --:--:-- --:--:-- --:--:-- 10.5M

```

And the size in `Packages`

```auto
Filename: pool/main/y/ydiff/python3-ydiff_1.2-1.jammy_all.deb
Size: 22090

```

The last update was `2024-Sep-13 07:33`, there probably was a problem during the update ?

Thanks !

---

<div class="post-metadata">

**Author:** ![Alex\_Miroshnychenko](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/alex_miroshnychenko/32/2621_2.png) [@Alex\_Miroshnychenko](https://forums.percona.com/u/Alex_Miroshnychenko)\
**Post date:** [September 18, 2024, 7:25am UTC](https://forums.percona.com/t/resolved-ubuntu-jammy-ppg-12-apt-python3-ydiff-file-has-unexpected-size/33199/2 "2024-09-18T07:25:56Z")

</div>

Hi @b.ogier  
Could you please retry installing `python3-ydiff` once again after running `apt update` command there is a possibility that you were trying to install the package at a time when the repo was in the process of update.  
Fro our end we don’t see such an issue now:

```auto
root@772733b59fbb:/# percona-release enable ppg-12 release
* Enabling the Percona Distribution for PostgreSQL 12 repository
...
Reading package lists... Done

root@772733b59fbb:/#
root@772733b59fbb:/# apt install python3-ydiff
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  python3-ydiff
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 22.1 kB of archives.
After this operation, 68.6 kB of additional disk space will be used.
Get:1 http://repo.percona.com/ppg-12/apt jammy/main amd64 python3-ydiff all 1:1.2-1.jammy [22.1 kB]
Fetched 22.1 kB in 0s (825 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package python3-ydiff.
(Reading database ... 8021 files and directories currently installed.)
Preparing to unpack .../python3-ydiff_1%3a1.2-1.jammy_all.deb ...
Unpacking python3-ydiff (1:1.2-1.jammy) ...
Setting up python3-ydiff (1:1.2-1.jammy) ...

```

If the issue still remains, please let us know the ip the `repo.percona.com` is resolved to from your end by running `host repo.percona.com` command.

---

<div class="post-metadata">

**Author:** ![b.ogier](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@b.ogier](https://forums.percona.com/u/b.ogier)\
**Post date:** [September 18, 2024, 1:48pm UTC](https://forums.percona.com/t/resolved-ubuntu-jammy-ppg-12-apt-python3-ydiff-file-has-unexpected-size/33199/3 "2024-09-18T13:48:30Z")

</div>

Hi Alex,

My apologies, the issue was due to a (misconfigured) proxy cache that was in the way. Clearing the squid cache resolves the issue.

Sorry for the noise and thanks a lot for your time !

KR,

Bastien
