Can't apt update on Odroid C1

Required Information

  • DietPi version | 9.8.0
  • Distro version | bookworm
  • Kernel version | Linux DietPi 6.1.96-legacy-meson #1 SMP Thu Jun 27 11:46:24 UTC 2024 armv7l GNU/Linux
  • Architecture | armhf
  • SBC model | Odroid C1 (armv7l)
  • Power supply used | (EG: 5V 1A RAVpower)
  • SD card used | (EG: SanDisk ultra)

Steps to reproduce

  1. apt update

Expected behaviour

Should update package repo

Actual behaviour

Failed to update

Extra details

Err:8 Index of /apt bookworm/main armhf Packages
File has unexpected size (2292 != 2468). Mirror sync in progress? [IP: 104.21. 12.65 443]
Hashes of expected file:

  • Filesize:2468 [weak]
  • SHA256:d2698488888509991d28990fbd3c37ccb6f59962a1ee5d2b37102c7361a6ba56
    Release file created at: Wed, 11 Dec 2024 15:21:36 +0000
    Fetched 3538 B in 4s (830 B/s)
    Reading package lists… Done
    E: Failed to fetch https://dietpi.com/apt/dists/bookworm/main/binary-armhf/Packa ges.xz File has unexpected size (2292 != 2468). Mirror sync in progress? [IP: 1 04.21.12.65 443]
    Hashes of expected file:
    - Filesize:2468 [weak]
    - SHA256:d2698488888509991d28990fbd3c37ccb6f59962a1ee5d2b37102c7361a6ba56
    Release file created at: Wed, 11 Dec 2024 15:21:36 +0000
    E: Some index files failed to download. They have been ignored, or old ones used instead.

See RPI 2: update DietPi from v9.7.1 to v9.8.0 -Expected file size failes-

I saw that, but what should I do on my side?
Thanks!

Nothing you can do, this is a problem with cloudflare cache.

Usually we disabled caching for this file. We will check again.

Ping @MichaIng

Can you please share the output of this:

curl -I https://dietpi.com/apt/dists/bookworm/main/binary-armhf/Packages.xz
HTTP/2 200
date: Fri, 20 Dec 2024 04:36:42 GMT
content-type: application/x-xz
content-length: 2292
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-robots-tag: all
x-permitted-cross-domain-policies: none
referrer-policy: no-referrer-when-downgrade
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self'; base-uri 'self' https://dietpi.com/matomo/index.php https://dietpi.com/grafana/; default-src 'none'; object-src 'none'; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src * data: blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdnjs.cloudflare.com; worker-src 'self' blob:; frame-src 'self'; manifest-src 'self'; connect-src 'self' https://api.github.com
permissions-policy: accelerometer=(), autoplay=(), browsing-topics=(), camera=(), display-capture=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), payment=(), usb=(), screen-wake-lock=()
cache-control: public, max-age=86399, no-store
strict-transport-security: max-age=31536000; includeSubDomains; preload
last-modified: Fri, 22 Nov 2024 14:11:45 GMT
etag: "8f4-62780f67f657d"
content-language: en
cf-cache-status: HIT
age: 738097
accept-ranges: bytes
server: cloudflare
cf-ray: 8f4ceed739b23257-VIE
alt-svc: h3=":443"; ma=86400
server-timing: cfL4;desc="?proto=TCP&rtt=16177&min_rtt=15983&rtt_var=6382&sent=5&recv=7&lost=0&retrans=0&sent_bytes=3401&recv_bytes=783&delivery_rate=165117&cwnd=53&unsent_bytes=0&cid=be8733ac30b845d9&ts=333&x=0"

So indeed now a Packages.xz somehow survived the cache purge. I excluded the InRelease files already, but will exclude the Packages and Packages.xz as well. But will be in a few hours.

Okay I excluded the package lists from the cache now. APT updates should hence not face such errors anymore.