Suppression ancien kernel et blocage de mise à jour

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.1.39
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 ?: Juste après la dernière mise à jour

Describe your issue

Bonjour,
Il y un peu plus d’une semaine j’ai mis à jour Yunohost et depuis c’est la cata. Impossible de mettre à jour quoi que ce soit, ni de sauvegarder. J’ai eu le problème des clés du Sury et Yarn qui étaient obsolètes, eut-être que c’est lié, peut-être pas.
J’ia tenté un
sudo apt --fix-broken install
Mais ce qui revient toujours c’est un kernel linux-image-6.12.25+rpt-rpi-2712 qui ne peut pas être supprimé.

Share relevant logs or error messages

sudo apt --fix-broken install
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Correcting dependencies… Done
The following additional packages will be installed:
libtidy5deb1 php8.2-tidy
The following packages will be REMOVED:
linux-image-6.12.25+rpt-rpi-2712
The following NEW packages will be installed:
libtidy5deb1 php8.2-tidy
0 upgraded, 2 newly installed, 1 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0 B/214 kB of archives.
After this operation, 34.6 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database … 112569 files and directories currently installed.)
Removing linux-image-6.12.25+rpt-rpi-2712 (1:6.12.25-1+rpt1) …
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.12.25+rpt-rpi-2712
/etc/kernel/postrm.d/z50-raspi-firmware:
raspi-firmware: missing /boot/firmware, did you forget to mount it?
run-parts: /etc/kernel/postrm.d/z50-raspi-firmware exited with return code 1
dpkg: error processing package linux-image-6.12.25+rpt-rpi-2712 (–remove):
installed linux-image-6.12.25+rpt-rpi-2712 package post-removal script subprocess returned err
or exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-image-6.12.25+rpt-rpi-2712
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Peux-tu partager la sortie de

df -h 

?

Tu as corrigé ce problème ?

@otm33 ça donne ça:

`

Filesystem Size Used Avail Use% Mounted on
udev 1.6G 0 1.6G 0% /dev
tmpfs 380M 1.3M 379M 1% /run
/dev/mmcblk0p2 57G 42G 13G 78% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 5.0M 16K 5.0M 1% /run/lock
log2ram 128M 43M 86M 34% /var/log
tmpfs 380M 0 380M 0% /run/user/52522

`

@jarod5001 oui c’est corrigé.

Tente un sudo mount -a mais sans conviction.

Ça ne donne rien de plus.

Javais tenté un autoremove mais j’ai d’autres erreurs que je ne sais pas régler:

` sudo apt --purge autoremove
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
wallabag2-ynh-deps : Depends: php8.2-tidy but it is not installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution)`

Et si je relance le –fix-broken je retombe sur l’erreur de kernel… Bref ça tourne en rond :-/

Tu peux nous montrer les sorties de:

lsblk
ls /dev/disk/by-uuid
cat /etc/fstab

As tu redémarré ton serveur ?

Je n’ose pas ^^’

@otm33

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 58.2G 0 disk
├─mmcblk0p1 179:1 0 512M 0 part
└─mmcblk0p2 179:2 0 57.7G 0 part /var/hdd.log

ls /dev/disk/by-uuid
4EF5-6F55 ce208fd3-38a8-424a-87a2-cd44114eb820

cat /etc/fstab
proc            /proc           proc    defaults          0       0
PARTUUID=10c9be7c-02  /               ext4    defaults,noatime  0       1
#a swapfile is not a swap partition, no line here
#use  dphys-swapfile swap[on|off]  for that

Je ne comprends pas pourquoi il n’y a pas de montage de la partition boot.
Je tenterais sudo mount /dev/mmcblk0p1 /boot/firmware (et j’espère que le point de montage /boot/firmware existe: commence peut-être par le vérifier.)
Et où est la racine / ?

Ah ça a marché ! J’ai pu ensuite refaire le –fix-broken puis apt update et apt upgrade.

OK! Place (replace ?) cela dans fstab.

Il faut que je relance fstab ? Je viens d’essayer et ça donne exactement la même sortie que tout à l’heure.

Peut-être redémarrer le serveur maintenant ?

Quelque chose du genre:

/dev/mmcblk0p1  /boot           vfat    defaults          0       2

ou

PARTUUID=<partuuid de la partition du boot>  /boot           vfat    defaults          0       2

blkid pour avoir le partuuid

fstab donne ceci:

proc /proc proc defaults 0 0
PARTUUID=10c9be7c-02 / ext4 defaults,noatime 0 1

et blkid donne ça:

/dev/mmcblk0p1: LABEL_FATBOOT=“bootfs” LABEL=“bootfs” UUID=“4EF5-6F55” BLOCK_SIZE=“512” TYPE=“vfat” PARTUUID=“10c9be7c-01”
/dev/mmcblk0p2: LABEL=“rootfs” UUID=“ce208fd3-38a8-424a-87a2-cd44114eb820” BLOCK_SIZE=“4096” TYPE=“ext4” PARTUUID=“10c9be7c-02”

J’ajouterais

PARTUUID=10c9be7c-01  /boot/firmware           vfat    defaults          0       2

Apparemment c’est /boot/firmware sur RpiOS

Suite aux manip d’hier j’ai pu tout mettre à jour (Yunohost, serveur et applications). J’ai aussi pu redémarrer sans encombre. Donc est-ce que ça vaut le coup de modifier comme que vous me le suggérez ?

En tous cas un très grand merci pour votre aide ! :grinning_face: