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

Required Information

  • DietPi version | v.9.7.1
  • Distro version | bookworm 0
  • Kernel version | Linux rocketeer 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
  • Architecture | armhf
  • SBC model | RPI2
  • Power supply used | (EG: 5V 1A RAVpower)
  • SD card used | (EG: SanDisk ultra)

Additional Information (if applicable)

  • Software title | Docker, Vaultwarden (docker container), Argon2

Steps to reproduce

  1. $ apt update

Expected behaviour

Should update package repository

Actual behaviour

Expected file size failes

Extra details

E: Could not get https://dietpi.com/apt/dists/bookworm/main/binary-armhf/Packages.xz File has unexpected size (2232 != 2292). Mirror sync in progress? [IP: 188.114.96.0 443]
   Hashes of expected file:
    - Filesize:2292 [weak]
    - SHA256:df2870e384ee3eaa9249b1c1e9d401198e9ce9c0ed8aec5dba27086cb62fc799
   Release file created at: Wed, 20 Nov 2024 01:36:13 +0000

I can download the file within a browser without issue. As well xz package seems to be ok.
Can you retry?

333 / 5.000
It looks like the storage space on the SD card has not been increased.
I have a small script for this (expand_fs.sh):

expand filesystem and reboot:

sudo systemctl enable dietpi-fs_partition_resize && sudo reboot

after that it is best to run sudo dpkg --configure -a,
then sudo apt update && sudo apt full-upgrade -y

I have no problem downloading the file with eg. wget, but when I do a get update, the file has an unexpected size.
Maybe it’s af wrong SHA256 checksum…?
I updated my RPI1, RPI3 and RPI4 without any errors

The storage space on the SD card has been increased. There’s a lot of free space left on th SD-card

I don’t think comment of @Ludger.Kuehm has any relation with the topic

Anyway, for me the file download is intact

root@DietPiProd:~# cd /tmp/
root@DietPiProd:/tmp# wget https://dietpi.com/apt/dists/bookworm/main/binary-armhf/Packages.xz
--2024-11-20 16:29:56--  https://dietpi.com/apt/dists/bookworm/main/binary-armhf/Packages.xz
Resolving dietpi.com (dietpi.com)... 188.114.96.3, 188.114.97.3, 2a06:98c1:3120::4, ...
Connecting to dietpi.com (dietpi.com)|188.114.96.3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2292 (2.2K) [application/x-xz]
Saving to: ‘Packages.xz’

Packages.xz                                     100%[====================================================================================================>]   2.24K  4.45KB/s    in 0.5s

2024-11-20 16:29:57 (4.45 KB/s) - ‘Packages.xz’ saved [2292/2292]

You see >> Length: 2292 (2.2K) [application/x-xz] as expected and 2024-11-20 16:29:57 (4.45 KB/s) - ‘Packages.xz’ saved [2292/2292]

As well hash is ok

root@DietPiProd:/tmp# sha256sum Packages.xz
df2870e384ee3eaa9249b1c1e9d401198e9ce9c0ed8aec5dba27086cb62fc799  Packages.xz

I can extract the file without issue

root@DietPiProd:/tmp# ls -la | grep Packages
-rw-r--r--  1 root root  2292 Nov 20 02:36 Packages.xz
root@DietPiProd:/tmp# xz -d Packages.xz
root@DietPiProd:/tmp# ls -la | grep Packages
-rw-r--r--  1 root root 12815 Nov 20 02:36 Packages
root@DietPiProd:/tmp#

and finally, content is readable using cat Packages

@Joulinar
I thought that maybe the storage space on the SD card had not been increased.
But it seems to be a different problem.