Problème mise à jour APT

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.1.43
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: Non

Describe your issue

Bonjour,

J’ai fait ma mise à jour de mon serveur suite à la CVE du 17 novembre.
Depuis je ne peux plus mettre à jour mon serveur. Je n’arrive plus à mettre à jour ma list via apt.
En plus de ça j’ai fais une bêtise, j’ai voulu supprimer mes fichier sources.list pour les rengréner mais j’ai supprimé ceux qu’ils ne fallait pas:
yunohost.list
raspi.list

Merci pour vos réponses

Share relevant logs or error messages

INFO Fetching available upgrades for system packages…
WARNING E: Failed to fetch https://packages.sury.org/php/dists/bookworm/main/binary-arm64/Packages.xz  File has unexpected size (292780 != 294336). Mirror sync in progress? [IP: 2a04:4e42:1d::820 443]
WARNING    Hashes of expected file:
WARNING     - Filesize:294336 [weak]
WARNING     - SHA256:3d68c9a024229884c8b0ee5898859644b2a7d71ad03db00497c55bc412aba580
WARNING     - SHA1:c44fdac4dc21028f07338e06a7ff6a9bb1121c30 [weak]
WARNING     - MD5Sum:5ab83280a18eaab72a8e83e1f5924559 [weak]
WARNING    Release file created at: Sat, 21 Nov 2026 13:32:01 +0000
WARNING E: Some index files failed to download. They have been ignored, or old ones used instead.
INFO The operation 'Fetching available system updates and refreshing app catalog' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20261121-135522-tools_update' to get help
ERROR Unable to update the cache of APT (Debian's package manager). Here is a dump of the sources.list lines, which might help identify problematic lines: 
sources.list:deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
sources.list:deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
sources.list:deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
sources.list.d/raspi.list:deb http://archive.raspberrypi.org/debian/ bookworm main
sources.list.d/extra_php_version.list:deb [signed-by=/etc/apt/trusted.gpg.d/extra_php_version.gpg] https://packages.sury.org/php/ bookworm main
sources.list.d/extra_php_version.list.bck:deb [signed-by=/etc/apt/trusted.gpg.d/extra_php_version.gpg] https://packages.sury.org/php/ bookworm main
sources.list.d/yarn.list:deb [signed-by=/etc/apt/trusted.gpg.d/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main
sources.list.d/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] http://forge.yunohost.org/debian/ bookworm stable

And what does yunohost tools regen-conf --dry-run --with-diff report?
Edit: désolé, j’ai répondu en anglais :sweat_smile:. Que retourne la commande plus haut

Même problème ici pour ma part.

Le message d’erreur varie dans le temps.

E: Failed to fetch https://packages.sury.org/php/dists/bookworm/main/binary-armhf/Packages.gz  File has unexpected size (522257 != 519330). Mirror sync in progress?

E: Failed to fetch https://packages.sury.org/php/dists/bookworm/main/binary-arm64/Packages.gz  File has unexpected size (526057 != 528263). Mirror sync in progress?

E: Failed to fetch https://packages.sury.org/php/dists/bookworm/main/binary-arm64/Packages.gz  File has unexpected size (526057 != 525237). Mirror sync in progress?

J’imagine que le dépôt sury est KO.

sudo yunohost tools regen-conf --dry-run --with-diff
INFO The configuration file '/etc/cron.daily/node_update' is expected to be deleted by regen-conf (category yunohost) but was kept back.
yunohost: 
  applied: 
  pending: 
    /etc/cron.daily/node_update: 
      diff: 
      status: unmanaged

Le répo fonctionne de nouveau chez moi.

Je viens de faire une mise à jour, j’ai eu une grosse mise à jour PHP, un défaut de repo ?

Que contiennent les fichier yunohost.list et rapsi.list ?

(J’ai effacé les miens avec une mauvaise manip)

Raspi, je ne sais pas, je suis sur Armbian.

# yunohost.list
deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] http://forge.yunohost.org/debian/ bookworm stable

My error was : https://packages.sury.org/php/dists/bookworm/main/binary-arm64/Packages.xz File has unexpected size (301004 != 303508). Mirror sync in progress? …

Now it works. then lots of php update .

Hier soir en voulant faire ma mise à jour de Nextcloud, j’avais encore le problème.

Ce matin j’ai toujours ce problème:

INFO Now upgrading nextcloud…
INFO Creating a safety backup prior to the upgrade
INFO Collecting files to be backed up for nextcloud…
INFO Declaring files to be backed up...
INFO /home/yunohost.app/nextcloud will not be saved, because 'BACKUP_CORE_ONLY' is set.
INFO /var/log/nextcloud will not be saved, because 'BACKUP_CORE_ONLY' is set.
INFO Backing up the MySQL database...
INFO Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).
INFO Creating a backup archive from the collected files…
INFO The archive will contain about 961MB of data.
SUCCESS Backup created: nextcloud-pre-upgrade1
INFO Backup nextcloud-pre-upgrade2 was deleted because it is replaced by a newer backup nextcloud-pre-upgrade1
INFO Updating sources...
INFO Updating system_user...
INFO Updating install_dir...
INFO Updating data_dir...
INFO Updating permissions...
INFO Updating ports...
INFO Updating apt...
WARNING E: Failed to fetch https://packages.sury.org/php/dists/bookworm/main/binary-arm64/Packages.xz  File has unexpected size (305476 != 305720). Mirror sync in progress? [IP: 2a04:4e42:8e::820 443]
WARNING    Hashes of expected file:
WARNING     - Filesize:305720 [weak]
WARNING     - SHA256:31955d4d8c55f1ed15d2e0a70cf49ec89ace680b032a81b4db849a4c4f22172b
WARNING     - SHA1:87222632ff8d867b1fd0996938d131a4d2c7160e [weak]
WARNING     - MD5Sum:e7c120c1305308f0345be054895c18ac [weak]
WARNING    Release file created at: Sun, 22 Nov 2026 08:34:24 +0000
WARNING E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR provision_or_update failed for apt : An error occured inside the script snippet
INFO The operation 'Upgrade the 'nextcloud' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20261122-093950-app_upgrade-nextcloud' to get help
WARNING Here's an extract of the logs before the crash. It might help debugging the error:
INFO DEBUG - Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
INFO DEBUG - Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
INFO DEBUG - Hit:4 http://archive.raspberrypi.org/debian bookworm InRelease
INFO DEBUG - Hit:5 https://dl.yarnpkg.com/debian stable InRelease
INFO DEBUG - Hit:6 https://repo.yunohost.org/debian bookworm InRelease
INFO DEBUG - Get:7 https://packages.sury.org/php bookworm InRelease [6084 B]
INFO DEBUG - Get:8 https://packages.sury.org/php bookworm/main arm64 Packages [306 kB]
INFO DEBUG - Err:8 https://packages.sury.org/php bookworm/main arm64 Packages
INFO DEBUG -   File has unexpected size (305476 != 305720). Mirror sync in progress? [IP: 2a04:4e42:8e::820 443]
INFO DEBUG -   Hashes of expected file:
INFO DEBUG -    - Filesize:305720 [weak]
INFO DEBUG -    - SHA256:31955d4d8c55f1ed15d2e0a70cf49ec89ace680b032a81b4db849a4c4f22172b
INFO DEBUG -    - SHA1:87222632ff8d867b1fd0996938d131a4d2c7160e [weak]
INFO DEBUG -    - MD5Sum:e7c120c1305308f0345be054895c18ac [weak]
INFO DEBUG -   Release file created at: Sun, 22 Nov 2026 08:34:24 +0000
INFO DEBUG - Get:9 https://packages.sury.org/php bookworm/main armhf Packages [303 kB]
INFO DEBUG - Fetched 365 kB in 6s (57.4 kB/s)
INFO DEBUG - Reading package lists...
INFO WARNING - E: Failed to fetch https://packages.sury.org/php/dists/bookworm/main/binary-arm64/Packages.xz  File has unexpected size (305476 != 305720). Mirror sync in progress? [IP: 2a04:4e42:8e::820 443]
INFO DEBUG - + ynh_exit_properly
WARNING Failed to update apt : The operation 'Upgrade the 'nextcloud' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20261122-093950-app_upgrade-nextcloud' to get help
INFO Reverting sources...
INFO Reverting system_user...
INFO Reverting install_dir...
INFO Reverting data_dir...
INFO Reverting permissions...
INFO Reverting ports...
INFO Reverting apt...
WARNING E: Failed to fetch https://packages.sury.org/php/dists/bookworm/main/binary-arm64/Packages.xz  File has unexpected size (305476 != 305720). Mirror sync in progress? [IP: 2a04:4e42:8e::820 443]
WARNING    Hashes of expected file:
WARNING     - Filesize:305720 [weak]
WARNING     - SHA256:31955d4d8c55f1ed15d2e0a70cf49ec89ace680b032a81b4db849a4c4f22172b
WARNING     - SHA1:87222632ff8d867b1fd0996938d131a4d2c7160e [weak]
WARNING     - MD5Sum:e7c120c1305308f0345be054895c18ac [weak]
WARNING    Release file created at: Sun, 22 Nov 2026 08:34:24 +0000
WARNING E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR provision_or_update failed for apt : An error occured inside the script snippet
INFO The operation 'Provisioning/deprovisioning/updating a resource' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20261122-094728-resource_snippet-nextcloud' to get help
WARNING Here's an extract of the logs before the crash. It might help debugging the error:
INFO DEBUG - Get:8 https://packages.sury.org/php bookworm/main arm64 Packages [306 kB]
INFO DEBUG - Err:8 https://packages.sury.org/php bookworm/main arm64 Packages
INFO DEBUG -   File has unexpected size (305476 != 305720). Mirror sync in progress? [IP: 2a04:4e42:8e::820 443]
INFO DEBUG -   Hashes of expected file:
INFO DEBUG -    - Filesize:305720 [weak]
INFO DEBUG -    - SHA256:31955d4d8c55f1ed15d2e0a70cf49ec89ace680b032a81b4db849a4c4f22172b
INFO DEBUG -    - SHA1:87222632ff8d867b1fd0996938d131a4d2c7160e [weak]
INFO DEBUG -    - MD5Sum:e7c120c1305308f0345be054895c18ac [weak]
INFO DEBUG -   Release file created at: Sun, 22 Nov 2026 08:34:24 +0000
INFO DEBUG - Get:9 https://packages.sury.org/php bookworm/main armhf Packages [303 kB]
INFO DEBUG - Reading package lists...
INFO WARNING - E: Failed to fetch https://packages.sury.org/php/dists/bookworm/main/binary-arm64/Packages.xz  File has unexpected size (305476 != 305720). Mirror sync in progress? [IP: 2a04:4e42:8e::820 443]
INFO WARNING -    Hashes of expected file:
INFO WARNING -     - Filesize:305720 [weak]
INFO WARNING -     - SHA256:31955d4d8c55f1ed15d2e0a70cf49ec89ace680b032a81b4db849a4c4f22172b
INFO WARNING -     - SHA1:87222632ff8d867b1fd0996938d131a4d2c7160e [weak]
INFO WARNING -     - MD5Sum:e7c120c1305308f0345be054895c18ac [weak]
INFO WARNING -    Release file created at: Sun, 22 Nov 2026 08:34:24 +0000
INFO WARNING - E: Some index files failed to download. They have been ignored, or old ones used instead.
INFO DEBUG - + ynh_exit_properly
ERROR Failed to rollback apt : The operation 'Provisioning/deprovisioning/updating a resource' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20261122-094728-resource_snippet-nextcloud' to get help
ERROR Provisioning, deprovisioning, or updating resources for nextcloud failed: The operation 'Upgrade the 'nextcloud' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20261122-093950-app_upgrade-nextcloud' to get help
ERROR None

Je ne sais pas si surrey est bugué sur mon serveur ou bien si cela vient de chez eux.

Avec la commande tools update:

sudo yunohost tools update
INFO Fetching available upgrades for system packages…
WARNING E: Failed to fetch https://packages.sury.org/php/dists/bookworm/main/binary-arm64/Packages.xz  File has unexpected size (305476 != 305720). Mirror sync in progress? [IP: 2a04:4e42:8e::820 443]
WARNING    Hashes of expected file:
WARNING     - Filesize:305720 [weak]
WARNING     - SHA256:31955d4d8c55f1ed15d2e0a70cf49ec89ace680b032a81b4db849a4c4f22172b
WARNING     - SHA1:87222632ff8d867b1fd0996938d131a4d2c7160e [weak]
WARNING     - MD5Sum:e7c120c1305308f0345be054895c18ac [weak]
WARNING    Release file created at: Sun, 22 Nov 2026 08:34:24 +0000
WARNING E: Some index files failed to download. They have been ignored, or old ones used instead.
INFO The operation 'Fetching available system updates and refreshing app catalog' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20261122-094919-tools_update' to get help
ERROR Unable to update the cache of APT (Debian's package manager). Here is a dump of the sources.list lines, which might help identify problematic lines: 
sources.list:deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
sources.list:deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
sources.list:deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
sources.list.d/raspi.list:deb http://archive.raspberrypi.org/debian/ bookworm main
sources.list.d/extra_php_version.list:deb [signed-by=/etc/apt/trusted.gpg.d/extra_php_version.gpg] https://packages.sury.org/php/ bookworm main
sources.list.d/yarn.list:deb [signed-by=/etc/apt/trusted.gpg.d/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main
sources.list.d/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] https://repo.yunohost.org/debian/ bookworm stable

En cherchant de fil en aiguille sur le forum, j’ai trouvé ceci qui m’a dépanné:

Cela a résolu mon problème, en voulant me dépanner j’ai certainement trop bricolé.
En tout cas merci pour votre aide le forum est une mine d’informations utiles.