# APT repository failing

**URL:** <https://discuss.elastic.co/t/apt-repository-failing/284915>\
**Category:** Elasticsearch\
**Created:** [September 22, 2021, 5:28pm UTC](https://discuss.elastic.co/t/apt-repository-failing/284915 "2021-09-22T17:28:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![armov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armov/32/94941_2.png) [@armov](https://discuss.elastic.co/u/armov)\
**Post date:** [September 22, 2021, 5:28pm UTC](https://discuss.elastic.co/t/apt-repository-failing/284915/1 "2021-09-22T17:28:35Z")

</div>

Elasticsearch repository in a Ubuntu focal 20.04 throws the following error while attempting to update apt:

```auto
E: Failed to fetch https://artifacts.elastic.co/packages/7.x/apt/dists/stable/main/binary-amd64/Packages.bz2 File has unexpected size (78886 != 78795). Mirror sync in progress? [IP: 34.120.127.130 443]
   Hashes of expected file:
    - Filesize:78795 [weak]
    - SHA512:6a31510a68ed4ec43116053445bcae3e01e8aee5a0a91115d33106751aa07803260f9e7c8de356cc6e80ca3225f2f60280de694cb59e0bbb9654de3149a2147b
    - SHA256:33e8f2fba7c5914d6bae8741560b4f12874e7bd655dfc7eaa73c93ed80837707
    - SHA1:41ff70e24888210b61ddf373af05076563e69e82 [weak]
    - MD5Sum:d6ea4093e04c8575814315b36e7174f6 [weak]
   Release file created at: Wed, 15 Sep 2021 21:37:54 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

```

Is the repository down? any possible workarounds for this?

---

<div class="post-metadata">

**Author:** ![Stef\_Nestor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stef_nestor/32/85483_2.png) [@Stef\_Nestor](https://discuss.elastic.co/u/Stef_Nestor)\
**Post date:** [September 22, 2021, 6:00pm UTC](https://discuss.elastic.co/t/apt-repository-failing/284915/2 "2021-09-22T18:00:58Z")

</div>

Hello! Thanks for reaching out & apologies for the inconvenience. Our team's currently investigating (id: es#4929) & should have an update soon.

---

<div class="post-metadata">

**Author:** ![Stef\_Nestor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stef_nestor/32/85483_2.png) [@Stef\_Nestor](https://discuss.elastic.co/u/Stef_Nestor)\
**Post date:** [September 22, 2021, 6:40pm UTC](https://discuss.elastic.co/t/apt-repository-failing/284915/3 "2021-09-22T18:40:49Z")

</div>

Elastic Infra's still investigating. If you don't mind, let's consolidate this to [this parent Discuss post](https://discuss.elastic.co/t/centos-7-metadata-file-does-not-match-checksum-during-yum-update/284913) for updates.

---

<div class="post-metadata">

**Author:** ![armov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armov/32/94941_2.png) [@armov](https://discuss.elastic.co/u/armov)\
**Post date:** [September 22, 2021, 6:55pm UTC](https://discuss.elastic.co/t/apt-repository-failing/284915/4 "2021-09-22T18:55:45Z")

</div>

Thanks for the update. Absolutely yes, I'll follow that thread then. Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 20, 2021, 6:56pm UTC](https://discuss.elastic.co/t/apt-repository-failing/284915/5 "2021-10-20T18:56:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
