Skip to content

apt update fails with unexpected file size for arm64 Packages index (mirror sync issue) #11709

@qbeeukraine

Description

@qbeeukraine

Bug Report

Describe the bug

When running apt update on a Debian Bookworm arm64 system, fetching the Fluent Bit package index fails with a file size mismatch. The Packages.bz2 downloaded from the CDN (36209 bytes) does not match the size declared in the Release file (36702 bytes). The Release file was published moments before the error occurred, indicating a CDN propagation race condition where the Cloudflare edge node (172.67.152.166) was still serving the previous version of the index.

To Reproduce

  • Rubular link if applicable: N/A
  • Example log message if applicable: N/A
  • Steps to reproduce the problem:
    1. Configure the Fluent Bit apt repository on a Debian Bookworm arm64 system per the official docs.
    2. Run apt update within minutes of a new package index being published.
    3. Observe the File has unexpected size error for the binary-arm64/Packages.bz2 file.

Expected behavior

apt update should complete successfully. The package index served by the CDN should match the size and hashes declared in the Release file at all times, or the Release file should not be served until all CDN edge nodes have the updated index.

Screenshots

Err:7 https://packages.fluentbit.io/debian/bookworm bookworm/main arm64 Packages
  File has unexpected size (36209 != 36702). Mirror sync in progress? [IP: 172.67.152.166 443]
  Hashes of expected file:
   - Filesize:36702 [weak]
   - SHA512:b815eabed574b715a057f7329d2d928f12d9e230ff2defa18e8fbb19da04bba8a9e0ffcc8b93580dfe4841290b1b1c53907429dcdde14ee053128c524dcf73f3
   - SHA256:f6a04d5b491f0aa529e43f9810e3301b1066d590892db0bc5a4751890ff2c098
   - SHA1:d3b9b857eaf7479c95e8bcc3ff9158fbb1f6514b [weak]
   - MD5Sum:82978ccf19f72bf407c1115c330675fc [weak]
  Release file created at: Tue, 14 Apr 2026 18:48:51 +0000

E: Failed to fetch https://packages.fluentbit.io/debian/bookworm/dists/bookworm/main/binary-arm64/Packages.bz2  File has unexpected size (36209 != 36702). Mirror sync in progress? [IP: 172.67.152.166 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Your Environment

  • Version used: Latest available in repository as of 2026-04-14
  • Configuration: Standard Fluent Bit apt repository (https://packages.fluentbit.io/debian/bookworm)
  • Environment name and version: Bare metal embedded board (Debian Bookworm)
  • Server type and version: N/A
  • Operating System and version: Debian GNU/Linux 12 (Bookworm), arm64
  • Filters and plugins: N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions