Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 22/09/2023, à 18:37

AlOuest

[Résolu] MAJ bloquées par linux-image-5.15.0-76-generic cassé

Bonjour à tous,

Impossible de faire les MAJ de mon système.
Le gestionnaire de MAJ me conseil un

 sudo apt-get install -f 

mais qui n'arrive à rien :

(base) alouest@alouest-B450-AORUS-PRO:~$ sudo apt-get install -f
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Les paquets suivants seront ENLEVÉS :
  linux-image-5.15.0-76-generic
0 mis à jour, 0 nouvellement installés, 1 à enlever et 15 non mis à jour.
6 partiellement installés ou enlevés.
Après cette opération, 11,6 Mo d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] 
(Lecture de la base de données... 439566 fichiers et répertoires déjà installés.)
Suppression de linux-image-5.15.0-76-generic (5.15.0-76.83) ...
/etc/kernel-img.conf: W: ignoring no_symlinks; only symlinks are supported
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.15.0-76-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 10: /etc/default/grub: fsck.mode=force: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: erreur de traitement du paquet linux-image-5.15.0-76-generic (--remove) :
 le sous-processus paquet linux-image-5.15.0-76-generic script post-removal installé a renvoyé un état de sortie d'erreur 1
dpkg: trop d'erreurs, arrêt
Des erreurs ont été rencontrées pendant l'exécution :
 linux-image-5.15.0-76-generic
L'exécution a été arrêtée car il y avait trop d'erreurs.
E: Sub-process /usr/bin/dpkg returned an error code (1)

J'ai essayé diverses solution trouvées sur le www(dpkg --configure -a, sudo apt-get upgrade, sudo apt-get update, etc) mais ça fini toujours par une erreur sur  linux-image-5.15.0-76-generic... sad

J'suis paumé la.
Help !

Dernière modification par AlOuest (Le 22/09/2023, à 22:00)

Hors ligne

#2 Le 22/09/2023, à 18:44

nany

Re : [Résolu] MAJ bloquées par linux-image-5.15.0-76-generic cassé

Bonjour,



AlOuest a écrit :
/usr/sbin/grub-mkconfig: 10: /etc/default/grub: fsck.mode=force: not found

Donne le retour de :

cat /etc/default/grub

Dernière modification par nany (Le 22/09/2023, à 18:45)

Hors ligne

#3 Le 22/09/2023, à 19:01

AlOuest

Re : [Résolu] MAJ bloquées par linux-image-5.15.0-76-generic cassé

(base) alouest@alouest-B450-AORUS-PRO:~$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="0"
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT= "fsck.mode=force" #"quiet"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="640x480"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

export GRUB_COLOR_NORMAL="light-gray/black"
export GRUB_COLOR_HIGHLIGHT="magenta/black"GRUB_DISABLE_OS_PROBER=false

Hors ligne

#4 Le 22/09/2023, à 19:16

nany

Re : [Résolu] MAJ bloquées par linux-image-5.15.0-76-generic cassé

Bien alors donne le retour de :

sudo sed -ri 's/(GRUB_CMDLINE_LINUX_DEFAULT=).*/\1"fsck.mode=force"/;s/(GRUB_DISABLE_OS_PROBER)/\n\1/' /etc/default/grub && cat /etc/default/grub

Hors ligne

#5 Le 22/09/2023, à 20:05

AlOuest

Re : [Résolu] MAJ bloquées par linux-image-5.15.0-76-generic cassé

(base) alouest@alouest-B450-AORUS-PRO:~$ sudo sed -ri 's/(GRUB_CMDLINE_LINUX_DEFAULT=).*/\1"fsck.mode=force"/;s/(GRUB_DISABLE_OS_PROBER)/\n\1/' /etc/default/grub && cat /etc/default/grub
[sudo] Mot de passe de alouest : 
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="0"
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="fsck.mode=force"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="640x480"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

export GRUB_COLOR_NORMAL="light-gray/black"
export GRUB_COLOR_HIGHLIGHT="magenta/black"
GRUB_DISABLE_OS_PROBER=false

Hors ligne

#6 Le 22/09/2023, à 20:10

nany

Re : [Résolu] MAJ bloquées par linux-image-5.15.0-76-generic cassé

OK. Redonne maintenant le retour de :

sudo apt-get install -f

Hors ligne

#7 Le 22/09/2023, à 20:17

AlOuest

Re : [Résolu] MAJ bloquées par linux-image-5.15.0-76-generic cassé

(base) alouest@alouest-B450-AORUS-PRO:~$ sudo apt-get install -f
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Les paquets suivants seront ENLEVÉS :
  linux-image-5.15.0-76-generic
0 mis à jour, 0 nouvellement installés, 1 à enlever et 15 non mis à jour.
6 partiellement installés ou enlevés.
Après cette opération, 11,6 Mo d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] 
(Lecture de la base de données... 439566 fichiers et répertoires déjà installés.)
Suppression de linux-image-5.15.0-76-generic (5.15.0-76.83) ...
/etc/kernel-img.conf: W: ignoring no_symlinks; only symlinks are supported
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.15.0-76-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-32-generic
Found initrd image: /boot/initrd.img-6.2.0-32-generic
Found linux image: /boot/vmlinuz-6.2.0-26-generic
Found initrd image: /boot/initrd.img-6.2.0-26-generic
Found linux image: /boot/vmlinuz-5.19.0-46-generic
Found initrd image: /boot/initrd.img-5.19.0-46-generic
Found linux image: /boot/vmlinuz-5.19.0-45-generic
Found initrd image: /boot/initrd.img-5.19.0-45-generic
Found linux image: /boot/vmlinuz-5.15.0-83-generic
Found initrd image: /boot/initrd.img-5.15.0-83-generic
Found linux image: /boot/vmlinuz-5.15.0-79-generic
Found initrd image: /boot/initrd.img-5.15.0-79-generic
Found linux image: /boot/vmlinuz-5.15.0-78-generic
Found initrd image: /boot/initrd.img-5.15.0-78-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
Paramétrage de linux-image-5.15.0-78-generic (5.15.0-78.85) ...
/etc/kernel-img.conf: W: ignoring no_symlinks; only symlinks are supported
Paramétrage de linux-image-6.2.0-32-generic (6.2.0-32.32~22.04.1) ...
/etc/kernel-img.conf: W: ignoring no_symlinks; only symlinks are supported
Paramétrage de linux-image-5.15.0-79-generic (5.15.0-79.86) ...
/etc/kernel-img.conf: W: ignoring no_symlinks; only symlinks are supported
Paramétrage de linux-image-6.2.0-26-generic (6.2.0-26.26~22.04.1) ...
/etc/kernel-img.conf: W: ignoring no_symlinks; only symlinks are supported
Paramétrage de linux-image-5.15.0-83-generic (5.15.0-83.92) ...
/etc/kernel-img.conf: W: ignoring no_symlinks; only symlinks are supported
Traitement des actions différées (« triggers ») pour linux-image-5.15.0-78-generic (5.15.0-78.85) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-78-generic
I: The initramfs will attempt to resume from /dev/sdc1
I: (UUID=db2adbe7-2d30-43d5-b972-f08b6875af1f)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-32-generic
Found initrd image: /boot/initrd.img-6.2.0-32-generic
Found linux image: /boot/vmlinuz-6.2.0-26-generic
Found initrd image: /boot/initrd.img-6.2.0-26-generic
Found linux image: /boot/vmlinuz-5.19.0-46-generic
Found initrd image: /boot/initrd.img-5.19.0-46-generic
Found linux image: /boot/vmlinuz-5.19.0-45-generic
Found initrd image: /boot/initrd.img-5.19.0-45-generic
Found linux image: /boot/vmlinuz-5.15.0-83-generic
Found initrd image: /boot/initrd.img-5.15.0-83-generic
Found linux image: /boot/vmlinuz-5.15.0-79-generic
Found initrd image: /boot/initrd.img-5.15.0-79-generic
Found linux image: /boot/vmlinuz-5.15.0-78-generic
Found initrd image: /boot/initrd.img-5.15.0-78-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
Traitement des actions différées (« triggers ») pour linux-image-6.2.0-32-generic (6.2.0-32.32~22.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-32-generic
I: The initramfs will attempt to resume from /dev/sdc1
I: (UUID=db2adbe7-2d30-43d5-b972-f08b6875af1f)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-32-generic
Found initrd image: /boot/initrd.img-6.2.0-32-generic
Found linux image: /boot/vmlinuz-6.2.0-26-generic
Found initrd image: /boot/initrd.img-6.2.0-26-generic
Found linux image: /boot/vmlinuz-5.19.0-46-generic
Found initrd image: /boot/initrd.img-5.19.0-46-generic
Found linux image: /boot/vmlinuz-5.19.0-45-generic
Found initrd image: /boot/initrd.img-5.19.0-45-generic
Found linux image: /boot/vmlinuz-5.15.0-83-generic
Found initrd image: /boot/initrd.img-5.15.0-83-generic
Found linux image: /boot/vmlinuz-5.15.0-79-generic
Found initrd image: /boot/initrd.img-5.15.0-79-generic
Found linux image: /boot/vmlinuz-5.15.0-78-generic
Found initrd image: /boot/initrd.img-5.15.0-78-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
Traitement des actions différées (« triggers ») pour linux-image-5.15.0-79-generic (5.15.0-79.86) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-79-generic
I: The initramfs will attempt to resume from /dev/sdc1
I: (UUID=db2adbe7-2d30-43d5-b972-f08b6875af1f)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-32-generic
Found initrd image: /boot/initrd.img-6.2.0-32-generic
Found linux image: /boot/vmlinuz-6.2.0-26-generic
Found initrd image: /boot/initrd.img-6.2.0-26-generic
Found linux image: /boot/vmlinuz-5.19.0-46-generic
Found initrd image: /boot/initrd.img-5.19.0-46-generic
Found linux image: /boot/vmlinuz-5.19.0-45-generic
Found initrd image: /boot/initrd.img-5.19.0-45-generic
Found linux image: /boot/vmlinuz-5.15.0-83-generic
Found initrd image: /boot/initrd.img-5.15.0-83-generic
Found linux image: /boot/vmlinuz-5.15.0-79-generic
Found initrd image: /boot/initrd.img-5.15.0-79-generic
Found linux image: /boot/vmlinuz-5.15.0-78-generic
Found initrd image: /boot/initrd.img-5.15.0-78-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
Traitement des actions différées (« triggers ») pour linux-image-6.2.0-26-generic (6.2.0-26.26~22.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-26-generic
I: The initramfs will attempt to resume from /dev/sdc1
I: (UUID=db2adbe7-2d30-43d5-b972-f08b6875af1f)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-32-generic
Found initrd image: /boot/initrd.img-6.2.0-32-generic
Found linux image: /boot/vmlinuz-6.2.0-26-generic
Found initrd image: /boot/initrd.img-6.2.0-26-generic
Found linux image: /boot/vmlinuz-5.19.0-46-generic
Found initrd image: /boot/initrd.img-5.19.0-46-generic
Found linux image: /boot/vmlinuz-5.19.0-45-generic
Found initrd image: /boot/initrd.img-5.19.0-45-generic
Found linux image: /boot/vmlinuz-5.15.0-83-generic
Found initrd image: /boot/initrd.img-5.15.0-83-generic
Found linux image: /boot/vmlinuz-5.15.0-79-generic
Found initrd image: /boot/initrd.img-5.15.0-79-generic
Found linux image: /boot/vmlinuz-5.15.0-78-generic
Found initrd image: /boot/initrd.img-5.15.0-78-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
Traitement des actions différées (« triggers ») pour linux-image-5.15.0-83-generic (5.15.0-83.92) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-83-generic
I: The initramfs will attempt to resume from /dev/sdc1
I: (UUID=db2adbe7-2d30-43d5-b972-f08b6875af1f)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-32-generic
Found initrd image: /boot/initrd.img-6.2.0-32-generic
Found linux image: /boot/vmlinuz-6.2.0-26-generic
Found initrd image: /boot/initrd.img-6.2.0-26-generic
Found linux image: /boot/vmlinuz-5.19.0-46-generic
Found initrd image: /boot/initrd.img-5.19.0-46-generic
Found linux image: /boot/vmlinuz-5.19.0-45-generic
Found initrd image: /boot/initrd.img-5.19.0-45-generic
Found linux image: /boot/vmlinuz-5.15.0-83-generic
Found initrd image: /boot/initrd.img-5.15.0-83-generic
Found linux image: /boot/vmlinuz-5.15.0-79-generic
Found initrd image: /boot/initrd.img-5.15.0-79-generic
Found linux image: /boot/vmlinuz-5.15.0-78-generic
Found initrd image: /boot/initrd.img-5.15.0-78-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
(base) alouest@alouest-B450-AORUS-PRO:~$ 

Si je comprend bien, l'installation s'est passé sans erreur ?

Hors ligne

#8 Le 22/09/2023, à 20:36

nany

Re : [Résolu] MAJ bloquées par linux-image-5.15.0-76-generic cassé

Oui, c’est maintenant débloqué.

En revanche il y aurait du ménage à faire dans les noyaux.

Hors ligne

#9 Le 22/09/2023, à 20:48

AlOuest

Re : [Résolu] MAJ bloquées par linux-image-5.15.0-76-generic cassé

Ménage en cours...

Un SUPER GRAND MERCI ! smile

Si j'ai suivi, on a ajouté 2 lignes dans grub qui ont permis d'esquiver une vérification

GRUB_CMDLINE_LINUX_DEFAULT="fsck.mode=force" 
GRUB_DISABLE_OS_PROBER=false

Qu'est ce qui clochait ?

Hors ligne

#10 Le 22/09/2023, à 20:56

nany

Re : [Résolu] MAJ bloquées par linux-image-5.15.0-76-generic cassé

Regarde bien les différences entre #3 et #5. Il n’y a rien d’ajouté, juste des lignes remises en ordre.

Hors ligne

#11 Le 22/09/2023, à 21:13

AlOuest

Re : [Résolu] MAJ bloquées par linux-image-5.15.0-76-generic cassé

Effectivement.
Je n'ai pas souvenir d'avoir édité ce fichier mais j'imagine que cela ne peut pas se produire spontanément...
lol

Dernière modification par AlOuest (Le 22/09/2023, à 21:13)

Hors ligne