Error on update: Failed to fetch file due to unexpected size

Creating a bug report/issue

x I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
    G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=17
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
    G_LIVE_PATCH_STATUS[0]=‘not applicable’
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    trixie
  • Kernel version | uname --al
    Linux DietPi 6.6.102-current-odroidxu4 #1 SMP PREEMPT Mon Dec 30 15:59:39 UTC 2024 armv7l GNU/Linux
  • Architecture | dpkg --print-architecture
    armhf
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
    Odroid XU3/XU4/MC1/HC1/HC2 (armv7l)
  • Power supply used | (EG: 5V 1A RAVpower)
  • SD card used | (EG: SanDisk ultra)

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
  • Was the software title installed freshly or updated/migrated?
  • Can this issue be replicated on a fresh installation of DietPi?
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. sudo apt update
  2. sudo apt clean
  3. sudo apt upgrade

Expected behaviour

  • Upgrading the 6 packages marked as outddated

Actual behaviour

Extra details

  • time stamp of .deb file on repo : 2025-10-12 14:28

can you try again? Maybe a temp issue

I just recognized an issue with our package update workflow for the Odroid XU4, since it does not have a Linux family but its very own build. So new packages with the same Armbian version trunk will always have the same package version, which will be related to the unexpected size. An apt update should actually solve it, But I’ll fix the workflow and trigger a rebuild for a new versions string.

This fixes it: ci: Armbian: use correct BOARDFAMILY fallback for LINUXFAMILY · MichaIng/DietPi@e291462 · GitHub
Build is on the way: Armbian · MichaIng/DietPi@e291462 · GitHub

I also fixed the issue with the existing package: We do not remove DEB packages from the Cloudflare cache, since every new package is expected to have a unique version string=name and hence creates a new cache entry anyway. Since the new Odroid XU4 package however was overwriting the old one, the Cloudflare cache entry did not match anymore, hence the wrong size and hash. I cleared that cache entry manually now.

Anyway, wait ~30 minutes for the new package with -dietpi2 version suffix. I’ll merge it to the repo ASAP once uploaded.

EDIT: Done:

apt update
apt upgrade

Thank you, I assumed something in these lines.
Today successful update, including 1 additional package (since yesterday): linux-dtb-current-odroidxu4
after reboot:
uname --all
Linux DietPi 6.6.108-current-odroidxu4 #1 SMP PREEMPT Mon Dec 30 15:59:39 UTC 2024 armv7l GNU/Linux
Thanks again for prompt fixing :slight_smile: