Page 1 sur 1

kernel à jour - mais démarre sur un vieux kernel

Posté : mar. 25 juil. 2023 10:04
par zack
Bonjour à tous, ça fait depuis quelques mois que je ne réussis plus à booter sur le kernel qui a été maj
j'ai maj le kernel: 5.15.0-78.85

Mais je ne peux aller que sur le kernel: 5.15.0.-67.74
ça m'embête de rester sur celui-ci j'ai un total de 18 freeze avec celui-ci

Re: kernel à jour - mais démarre sur un vieux kernel

Posté : mar. 25 juil. 2023 10:18
par cyrille
Quelles sont les erreurs rencontrées ?
Avec si peu de détails, dur d'aider ;)
A t il fonctionné un jour ?
Apparait il dans le grub ?
Si oui, que se passe t il lorsque que tu bootes dessus (reporter exactement les erreurs)

Code : Tout sélectionner

echo; dpkg -l | awk '!/^rc/ && / linux-(c|g|h|i|lo|m|si|t)/{print $1,$2,$3,$4 | "sort -k3V | column -t"}' ; echo -e "\nNoyau courant : $(uname -mr)"
Te renverra la liste des kernels installés sur ton système
Lequel pose soucis ?

Re: kernel à jour - mais démarre sur un vieux kernel

Posté : mer. 26 juil. 2023 06:45
par zack
Bonjour :l

echo; dpkg -l | awk '!/^rc/ && / linux-(c|g|h|i|lo|m|si|t)/{print $1,$2,$3,$4 | "sort -k3V | column -t"}' ; echo -e "\nNoyau courant : $(uname -mr)"

Code : Tout sélectionner

ii  linux-headers-5.15.0-67                5.15.0-67.74  all
ii  linux-headers-5.15.0-67-generic        5.15.0-67.74  amd64
ii  linux-image-5.15.0-67-generic          5.15.0-67.74  amd64
ii  linux-modules-5.15.0-67-generic        5.15.0-67.74  amd64
ii  linux-modules-extra-5.15.0-67-generic  5.15.0-67.74  amd64
ii  linux-headers-5.15.0-72                5.15.0-72.79  all
ii  linux-headers-5.15.0-72-generic        5.15.0-72.79  amd64
ii  linux-image-5.15.0-72-generic          5.15.0-72.79  amd64
ii  linux-modules-5.15.0-72-generic        5.15.0-72.79  amd64
ii  linux-modules-extra-5.15.0-72-generic  5.15.0-72.79  amd64
ii  linux-headers-5.15.0-78                5.15.0-78.85  all
ii  linux-headers-5.15.0-78-generic        5.15.0-78.85  amd64
ii  linux-image-5.15.0-78-generic          5.15.0-78.85  amd64
ii  linux-modules-5.15.0-78-generic        5.15.0-78.85  amd64
ii  linux-modules-extra-5.15.0-78-generic  5.15.0-78.85  amd64
ii  linux-generic                          5.15.0.78.75  amd64
ii  linux-headers-generic                  5.15.0.78.75  amd64
ii  linux-image-generic                    5.15.0.78.75  amd64

Noyau courant : 5.15.0-67-generic x86_64


Le problème je crois qu'il vient de la commande qui fait la maj du grub qui est censé ensuite m'afficher les kernels au démarrage (car je crois que la commande ne met rien à jour).

Je tape après la maj du kernel:
"sudo update-grub"

En faites j'ai d'installer >
5.15.0-67
5.15.0-72
5.15.0-78

Le 5.15.0-67 c'est sur celui-là que je suis.


Mais au démarrage j'ai ça de lister:
5.15.0-67
5.15.0-60
5.15.0-58
5.15.0-57
5.15.0-41

Donc je crois bien que la commande qui doit mettre à jour la liste pour le démarrage ne fait rien du tout regarde la différence entre ce qui installer, et ce qui est détecté au démarrage.

Re: kernel à jour - mais démarre sur un vieux kernel

Posté : mer. 26 juil. 2023 09:40
par cyrille
si tu fais un

Code : Tout sélectionner

sudo apt autoremove

ça change la donne ou non ?

Re: kernel à jour - mais démarre sur un vieux kernel

Posté : mer. 26 juil. 2023 09:42
par cyrille
Attention pour certaines tu n'as que les headers et les modules pas le linux-image ;)

Re: kernel à jour - mais démarre sur un vieux kernel

Posté : mer. 26 juil. 2023 09:50
par cyrille
Tu peux faire une photo de ton grub ?

Re: kernel à jour - mais démarre sur un vieux kernel

Posté : ven. 28 juil. 2023 07:42
par zack
Bonjour pas de résultat c'est toujours pareil

Code : Tout sélectionner

sudo apt autoremove
[sudo] Mot de passe de rick1 :    



                
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 :
  libnvidia-compute-515 libnvidia-compute-515:i386 libnvidia-decode-515
  libnvidia-decode-515:i386 libnvidia-encode-515 libnvidia-encode-515:i386
  libnvidia-extra-515 libnvidia-fbc1-515 libnvidia-fbc1-515:i386
  libnvidia-gl-515 libnvidia-gl-515:i386 linux-headers-5.15.0-72
  linux-headers-5.15.0-72-generic linux-image-5.15.0-72-generic
  linux-modules-5.15.0-72-generic linux-modules-extra-5.15.0-72-generic
  nvidia-compute-utils-515 nvidia-kernel-source-515 nvidia-utils-515
  xserver-xorg-video-nvidia-515
0 mis à jour, 0 nouvellement installés, 20 à enlever et 11 non mis à jour.
Après cette opération, 596 Mo d'espace disque seront libérés.


Souhaitez-vous continuer ? [O/n] o



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 :
  libnvidia-compute-515 libnvidia-compute-515:i386 libnvidia-decode-515
  libnvidia-decode-515:i386 libnvidia-encode-515 libnvidia-encode-515:i386
  libnvidia-extra-515 libnvidia-fbc1-515 libnvidia-fbc1-515:i386
  libnvidia-gl-515 libnvidia-gl-515:i386 linux-headers-5.15.0-72
  linux-headers-5.15.0-72-generic linux-image-5.15.0-72-generic
  linux-modules-5.15.0-72-generic linux-modules-extra-5.15.0-72-generic
  nvidia-compute-utils-515 nvidia-kernel-source-515 nvidia-utils-515
  xserver-xorg-video-nvidia-515
0 mis à jour, 0 nouvellement installés, 20 à enlever et 11 non mis à jour.
Après cette opération, 596 Mo d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] o
(Lecture de la base de données... 414622 fichiers et répertoires déjà installés.)
Suppression de libnvidia-compute-515:amd64 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de libnvidia-compute-515:i386 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de libnvidia-decode-515:i386 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de libnvidia-decode-515:amd64 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de libnvidia-encode-515:amd64 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de libnvidia-encode-515:i386 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de libnvidia-extra-515:amd64 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de libnvidia-fbc1-515:i386 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de libnvidia-fbc1-515:amd64 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de libnvidia-gl-515:amd64 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de libnvidia-gl-515:i386 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de linux-headers-5.15.0-72-generic (5.15.0-72.79) ...
Suppression de linux-headers-5.15.0-72 (5.15.0-72.79) ...
Suppression de linux-modules-extra-5.15.0-72-generic (5.15.0-72.79) ...
Suppression de nvidia-compute-utils-515:amd64 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de nvidia-kernel-source-515 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de nvidia-utils-515:amd64 (525.125.06-0ubuntu0.22.04.1) ...
Suppression de xserver-xorg-video-nvidia-515:amd64 (525.125.06-0ubuntu0.22.04.1)
 ...
Suppression de linux-image-5.15.0-72-generic (5.15.0-72.79) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: nvidia 525.125.06 (5.15.0-72-generic) (x86_64)
Module nvidia-525.125.06 for kernel 5.15.0-72-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

nvidia.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-72-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-modeset.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-72-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-drm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-72-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-uvm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-72-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-peermem.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-72-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...
dkms: removing: virtualbox 6.1.38 (5.15.0-72-generic) (x86_64)
Module virtualbox-6.1.38 for kernel 5.15.0-72-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-72-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-72-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-72-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.15.0-67-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.15.0-67-generic
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.15.0-72-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-78-generic
Found initrd image: /boot/initrd.img-5.15.0-78-generic
Found linux image: /boot/vmlinuz-5.15.0-67-generic
Found initrd image: /boot/initrd.img-5.15.0-67-generic
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.
Found Windows 10 on /dev/sda1
Found Ubuntu 18.04 LTS (18.04) on /dev/sdb10
Found Linux Mint 19 Tara (19) on /dev/sdb11
Found Netrunner 18.03 (18.03) on /dev/sdb12
Found MX 17 Horizon (17) on /dev/sdb13
Found OpenMandriva Lx 3.0 (3.0) on /dev/sdb14
Found Ubuntu 18.04.1 LTS (18.04) on /dev/sdb15
Found Linux Mint 19.3 Tricia (19.3) on /dev/sdb17
Found Mageia 6 (6) on /dev/sdb5
Found Mageia 8 (8) on /dev/sdb6
done
Suppression de linux-modules-5.15.0-72-generic (5.15.0-72.79) ...




sudo update-grub

[sudo] Mot de passe de rick1 : 



                  
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-78-generic
Found initrd image: /boot/initrd.img-5.15.0-78-generic
Found linux image: /boot/vmlinuz-5.15.0-67-generic
Found initrd image: /boot/initrd.img-5.15.0-67-generic
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.
Found Windows 10 on /dev/sda1
Found Ubuntu 18.04 LTS (18.04) on /dev/sdb10
Found Linux Mint 19 Tara (19) on /dev/sdb11
Found Netrunner 18.03 (18.03) on /dev/sdb12
Found MX 17 Horizon (17) on /dev/sdb13
Found OpenMandriva Lx 3.0 (3.0) on /dev/sdb14
Found Ubuntu 18.04.1 LTS (18.04) on /dev/sdb15
Found Linux Mint 19.3 Tricia (19.3) on /dev/sdb17
Found Mageia 6 (6) on /dev/sdb5
Found Mageia 8 (8) on /dev/sdb6
done




su
Mot de passe : 
root@nzxt-linuxmint21:/home/rick1# update-grub




Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-78-generic
Found initrd image: /boot/initrd.img-5.15.0-78-generic
Found linux image: /boot/vmlinuz-5.15.0-67-generic
Found initrd image: /boot/initrd.img-5.15.0-67-generic
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.
Found Windows 10 on /dev/sda1
Found Ubuntu 18.04 LTS (18.04) on /dev/sdb10
Found Linux Mint 19 Tara (19) on /dev/sdb11
Found Netrunner 18.03 (18.03) on /dev/sdb12
Found MX 17 Horizon (17) on /dev/sdb13
Found OpenMandriva Lx 3.0 (3.0) on /dev/sdb14
Found Ubuntu 18.04.1 LTS (18.04) on /dev/sdb15
Found Linux Mint 19.3 Tricia (19.3) on /dev/sdb17
Found Mageia 6 (6) on /dev/sdb5
Found Mageia 8 (8) on /dev/sdb6
done

Image

Re: kernel à jour - mais démarre sur un vieux kernel

Posté : ven. 28 juil. 2023 10:11
par zack
C'est résolu, (faut savoir que mon système actuel c'est "Mint21" quand je suis allé par hasard sur mon fichier qui liste tous mes OS installé j'ai vu écrit:

linuxmint19.3 [boot-os]

Bah je suis allé dessus, j'ai lancé la commande de maj du boot, et hop et au redémarrage, les bons kernels étaient détectés
je suis sur le 5.15.0-78

MERCI :l

J'ai quand même mis une note à côté de la commande de maj du boot pour dire qu'il fallait aller sur le mint19.3

Re: kernel à jour - mais démarre sur un vieux kernel

Posté : ven. 28 juil. 2023 10:17
par cyrille
Cool si résolu