# Apt repo issue "Failed to fetch File has unexpected size"

**URL:** <https://forums.percona.com/t/apt-repo-issue-failed-to-fetch-file-has-unexpected-size/27474>\
**Category:** General Questions\
**Created:** [December 28, 2023, 8:22pm UTC](https://forums.percona.com/t/apt-repo-issue-failed-to-fetch-file-has-unexpected-size/27474 "2023-12-28T20:22:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Nick\_Coppola](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nick_coppola/32/5246_2.png) [@Nick\_Coppola](https://forums.percona.com/u/Nick_Coppola)\
**Post date:** [December 28, 2023, 9:33pm UTC](https://forums.percona.com/t/apt-repo-issue-failed-to-fetch-file-has-unexpected-size/27474/2 "2023-12-28T21:33:53Z")

</div>

I’m also getting a similar error but for the focal distro. Strange thing is that this happens for some of our servers but an apt update works just fine on others, not sure why that’s the case.

> [@Broken apt repo](https://forums.percona.com/t/broken-apt-repo/27471):
>
> I’m getting this error when running apt update on ubuntu 20.04. This started occuring on Tuesday, which seems to line up with the timestamp of ‘Release file created at’ in the error message. Is there an issue with a file that was uploaded to apt for the focal distro? Err:19 http://repo.percona.com/percona/apt focal/main i386 Packages File has unexpected size (20 != 414). Mirror sync in progress? [IP: 147.135.54.159 80] Hashes of expected file: - Filesize:414 [weak] - SHA256:13a18235d6…

---

_[View the full topic](https://forums.percona.com/t/apt-repo-issue-failed-to-fetch-file-has-unexpected-size/27474)._
