Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pending kernel upgrade

50 views
Skip to first unread message

David BERCOT

unread,
Mar 26, 2021, 9:40:03 AM3/26/21
to

Bonjour,

Depuis quelque temps, j'ai un message bizarre au moment de mes mises à
jour :
Pending kernel upgrade
│ Newer kernel available

│ The currently running kernel version is 5.10.0-3-amd64 which is not
the expected kernel version 5.10.0-5-amd64.

│ Restarting the system to load the new kernel will not be handled
automatically, so you should consider rebooting.

C'est un message que j'ai déjà eu précédemment (logiquement) au moment
des mises à jour de noyau mais, après reboot, tout rentrait dans l'ordre.
Là, il semblerait que j'ai installé des noyaux plus récents (5.10.0-4
puis 5.10.0-5) mais qu'ils ne sont pas pris en compte, y compris après
reboot.

Vous auriez une piste ?

Merci.

David.

Daniel Caillibaud

unread,
Mar 26, 2021, 10:20:03 AM3/26/21
to
Le 26/03/21 à 14:34, David BERCOT <deb...@bercot.org> a écrit :
> C'est un message que j'ai déjà eu précédemment (logiquement) au moment
> des mises à jour de noyau mais, après reboot, tout rentrait dans l'ordre.
> Là, il semblerait que j'ai installé des noyaux plus récents (5.10.0-4
> puis 5.10.0-5) mais qu'ils ne sont pas pris en compte, y compris après
> reboot.
>
> Vous auriez une piste ?

Une directive mise dans un /etc/grub.d/* qui imposerait une version ?

Faudrait aller voir le dernier /boot/grub/grub.cfg généré.

Éventuellement relancer `update-grub` pour le regénérer et voir si les nouveaux noyaux sont
bien ajoutés et pris en compte par défaut.

Au boot tu as quoi dans le menu grub ?

--
Daniel

Quand l'homme aura pollué et empoisonné tous les cours d'eau, mers et
océans, Qu'il aura détruit toutes les forêts et tué tous les animaux,
Il se rendra compte qu'il ne peut manger l'argent.
I Guayazu

David BERCOT

unread,
Mar 26, 2021, 10:20:03 AM3/26/21
to
OK, c'était très simple.
Un update-grub a tout résolu...

Merci.

David.

P.S. : je ne comprends pas pourquoi ce n'était pas fait automatiquement
mais bon...

David BERCOT

unread,
Mar 27, 2021, 10:00:03 AM3/27/21
to
Bonjour,

J'ai visiblement répondu trop vite...

En effet, au lancement des commandes grub-mkconfig et update-grub, je
vois bien la ligne "5.10.0-5".
Malheureusement, au reboot, je ne l'ai pas dans mon menu grub qui
n'affiche encore que les options 5.10.0-3 et 5.10.0-2.

Visiblement, le menu n'est pas à jour...

Y aurait-il une autre commande à passer ?

Merci.

David.

yamo'

unread,
Mar 27, 2021, 11:10:03 AM3/27/21
to
Salut,

David BERCOT a tapoté le 27/03/2021 15:00:
> Bonjour,
>
> J'ai visiblement répondu trop vite...
>
> En effet, au lancement des commandes grub-mkconfig et update-grub, je
> vois bien la ligne "5.10.0-5".
> Malheureusement, au reboot, je ne l'ai pas dans mon menu grub qui
> n'affiche encore que les options 5.10.0-3 et 5.10.0-2.
>
> Visiblement, le menu n'est pas à jour...
>
> Y aurait-il une autre commande à passer ?


Tu n'aurais pas une partition /boot pleine?

Sinon il y a update-grub2 mais ça devrait faire la même chose.


--
Stéphane

David BERCOT

unread,
Mar 28, 2021, 5:00:03 AM3/28/21
to

Hello,

Le 27/03/2021 à 15:41, yamo' a écrit :
> Salut,
>
> David BERCOT a tapoté le 27/03/2021 15:00:
>> Bonjour,
>>
>> J'ai visiblement répondu trop vite...
>>
>> En effet, au lancement des commandes grub-mkconfig et update-grub, je
>> vois bien la ligne "5.10.0-5".
>> Malheureusement, au reboot, je ne l'ai pas dans mon menu grub qui
>> n'affiche encore que les options 5.10.0-3 et 5.10.0-2.
>>
>> Visiblement, le menu n'est pas à jour...
>>
>> Y aurait-il une autre commande à passer ?
>
>
> Tu n'aurais pas une partition /boot pleine?

Non, pas de souci de ce côté-là...

> Sinon il y a update-grub2 mais ça devrait faire la même chose.

Oui, je me dis la même chose mais j'avais de toutes façons exécuté les 2...

David.

Michel

unread,
Mar 28, 2021, 5:50:03 AM3/28/21
to
À tout hasard, les liens symboliques dans / ont bien été mis à jour?

David BERCOT

unread,
Mar 29, 2021, 2:10:02 AM3/29/21
to

Bonjour,
En effet, à la racine, j'ai bien :
initrd.img -> boot/initrd.img-5.10.0-5-amd64
vmlinuz -> boot/vmlinuz-5.10.0-5-amd64

J'avoue que je ne sais pas bien où chercher...

David.

didier gaumet

unread,
Mar 29, 2021, 4:10:03 AM3/29/21
to
Le 29/03/2021 à 08:06, David BERCOT a écrit :

> En effet, à la racine, j'ai bien :
> initrd.img -> boot/initrd.img-5.10.0-5-amd64
> vmlinuz -> boot/vmlinuz-5.10.0-5-amd64
>
> J'avoue que je ne sais pas bien où chercher...
>
> David.

A tout hasard, tu pourrais peut-être poster ici /etc/default/grub et
/boot/grub/grub.cfg?

David BERCOT

unread,
Mar 29, 2021, 4:50:03 AM3/29/21
to

Bonjour Didier,
Pas de souci...

/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=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="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"

/boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod lvm
insmod ext2
set
root='lvmid/Uur1gw-ckhI-8fYh-2Y3J-2UtP-BDVK-3yuxWh/clNBC3-Hkyn-OXgB-ceT2-Dck0-AqVb-FMReXM'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint='lvmid/Uur1gw-ckhI-8fYh-2Y3J-2UtP-BDVK-3yuxWh/clNBC3-Hkyn-OXgB-ceT2-Dck0-AqVb-FMReXM'
4ab6e0b2-ccca-4342-80d4-5b296f73b35f
else
search --no-floppy --fs-uuid --set=root
4ab6e0b2-ccca-4342-80d4-5b296f73b35f
fi
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=fr_FR
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class
gnu --class os $menuentry_id_option
'gnulinux-simple-4ab6e0b2-ccca-4342-80d4-5b296f73b35f' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod lvm
insmod ext2
set
root='lvmid/Uur1gw-ckhI-8fYh-2Y3J-2UtP-BDVK-3yuxWh/clNBC3-Hkyn-OXgB-ceT2-Dck0-AqVb-FMReXM'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint='lvmid/Uur1gw-ckhI-8fYh-2Y3J-2UtP-BDVK-3yuxWh/clNBC3-Hkyn-OXgB-ceT2-Dck0-AqVb-FMReXM'
4ab6e0b2-ccca-4342-80d4-5b296f73b35f
else
search --no-floppy --fs-uuid --set=root
4ab6e0b2-ccca-4342-80d4-5b296f73b35f
fi
echo 'Loading Linux 5.10.0-5-amd64 ...'
linux /boot/vmlinuz-5.10.0-5-amd64 root=/dev/mapper/TPO--DBE--vg-root
ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.10.0-5-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option
'gnulinux-advanced-4ab6e0b2-ccca-4342-80d4-5b296f73b35f' {
menuentry 'Debian GNU/Linux, with Linux 5.10.0-5-amd64' --class debian
--class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-5.10.0-5-amd64-advanced-4ab6e0b2-ccca-4342-80d4-5b296f73b35f' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod lvm
insmod ext2
set
root='lvmid/Uur1gw-ckhI-8fYh-2Y3J-2UtP-BDVK-3yuxWh/clNBC3-Hkyn-OXgB-ceT2-Dck0-AqVb-FMReXM'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint='lvmid/Uur1gw-ckhI-8fYh-2Y3J-2UtP-BDVK-3yuxWh/clNBC3-Hkyn-OXgB-ceT2-Dck0-AqVb-FMReXM'
4ab6e0b2-ccca-4342-80d4-5b296f73b35f
else
search --no-floppy --fs-uuid --set=root
4ab6e0b2-ccca-4342-80d4-5b296f73b35f
fi
echo 'Loading Linux 5.10.0-5-amd64 ...'
linux /boot/vmlinuz-5.10.0-5-amd64 root=/dev/mapper/TPO--DBE--vg-root
ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.10.0-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 5.10.0-5-amd64 (recovery mode)'
--class debian --class gnu-linux --class gnu --class os
$menuentry_id_option
'gnulinux-5.10.0-5-amd64-recovery-4ab6e0b2-ccca-4342-80d4-5b296f73b35f' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod lvm
insmod ext2
set
root='lvmid/Uur1gw-ckhI-8fYh-2Y3J-2UtP-BDVK-3yuxWh/clNBC3-Hkyn-OXgB-ceT2-Dck0-AqVb-FMReXM'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint='lvmid/Uur1gw-ckhI-8fYh-2Y3J-2UtP-BDVK-3yuxWh/clNBC3-Hkyn-OXgB-ceT2-Dck0-AqVb-FMReXM'
4ab6e0b2-ccca-4342-80d4-5b296f73b35f
else
search --no-floppy --fs-uuid --set=root
4ab6e0b2-ccca-4342-80d4-5b296f73b35f
fi
echo 'Loading Linux 5.10.0-5-amd64 ...'
linux /boot/vmlinuz-5.10.0-5-amd64 root=/dev/mapper/TPO--DBE--vg-root
ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.10.0-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 5.10.0-4-amd64' --class debian
--class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-5.10.0-4-amd64-advanced-4ab6e0b2-ccca-4342-80d4-5b296f73b35f' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod lvm
insmod ext2
set
root='lvmid/Uur1gw-ckhI-8fYh-2Y3J-2UtP-BDVK-3yuxWh/clNBC3-Hkyn-OXgB-ceT2-Dck0-AqVb-FMReXM'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint='lvmid/Uur1gw-ckhI-8fYh-2Y3J-2UtP-BDVK-3yuxWh/clNBC3-Hkyn-OXgB-ceT2-Dck0-AqVb-FMReXM'
4ab6e0b2-ccca-4342-80d4-5b296f73b35f
else
search --no-floppy --fs-uuid --set=root
4ab6e0b2-ccca-4342-80d4-5b296f73b35f
fi
echo 'Loading Linux 5.10.0-4-amd64 ...'
linux /boot/vmlinuz-5.10.0-4-amd64 root=/dev/mapper/TPO--DBE--vg-root
ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.10.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 5.10.0-4-amd64 (recovery mode)'
--class debian --class gnu-linux --class gnu --class os
$menuentry_id_option
'gnulinux-5.10.0-4-amd64-recovery-4ab6e0b2-ccca-4342-80d4-5b296f73b35f' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod lvm
insmod ext2
set
root='lvmid/Uur1gw-ckhI-8fYh-2Y3J-2UtP-BDVK-3yuxWh/clNBC3-Hkyn-OXgB-ceT2-Dck0-AqVb-FMReXM'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint='lvmid/Uur1gw-ckhI-8fYh-2Y3J-2UtP-BDVK-3yuxWh/clNBC3-Hkyn-OXgB-ceT2-Dck0-AqVb-FMReXM'
4ab6e0b2-ccca-4342-80d4-5b296f73b35f
else
search --no-floppy --fs-uuid --set=root
4ab6e0b2-ccca-4342-80d4-5b296f73b35f
fi
echo 'Loading Linux 5.10.0-4-amd64 ...'
linux /boot/vmlinuz-5.10.0-4-amd64 root=/dev/mapper/TPO--DBE--vg-root
ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.10.0-4-amd64
}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply
type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

On voit bien des lignes avec 5.10.0-5-amd64 mais je ne les ai pas au boot...

David.

didier gaumet

unread,
Mar 29, 2021, 5:50:02 AM3/29/21
to

Que te dit la commande:
$ uname -a
?

Et as-tu encore le message "The currently running kernel version is
5.10.0-3-amd64 which is not the expected kernel version 5.10.0-5-amd64" ?

Hypothèse: si tu l'as encore ce pourrait être que lors de la mise à jour
du noyau il y a eu un problème et que l'image initrd ne correspond pas
au noyau utilisé. Auquel cas tu peux tenter carrément une réinstallation
du noyau:
# apt reinstall linux-image-5.10.0-5-amd64
ou alors mettre à jour son initrd
# update-initramfs -u -k 5.10.0-5-amd64

En tout cas Grub m'a l'air à jour et selon moi tu démarres bien ce qu'il
considère être le noyau 5.10.0-5-amd64, simplement il l'appelle "Debian
GNU/Linux" dans le menu

David BERCOT

unread,
Mar 29, 2021, 6:00:03 AM3/29/21
to

Le 29/03/2021 à 11:44, didier gaumet a écrit :
>
> Que te dit la commande:
> $ uname -a
> ?

$ uname -a
Linux TPO-DBE 5.10.0-3-amd64 #1 SMP Debian 5.10.13-1 (2021-02-06) x86_64
GNU/Linux

> Et as-tu encore le message "The currently running kernel version is
> 5.10.0-3-amd64 which is not the expected kernel version 5.10.0-5-amd64" ?

Absolument, à chaque mise à jour (ce qui me paraît logique)...

> Hypothèse: si tu l'as encore ce pourrait être que lors de la mise à jour
> du noyau il y a eu un problème et que l'image initrd ne correspond pas
> au noyau utilisé.

C'est possible, sauf qu'il y a eu plusieurs mises à jour depuis qui
n'ont rien changé. Mais sait-on jamais...

> Auquel cas tu peux tenter carrément une réinstallation
> du noyau:
> # apt reinstall linux-image-5.10.0-5-amd64
> ou alors mettre à jour son initrd
> # update-initramfs -u -k 5.10.0-5-amd64

Je vais tenter ça...

> En tout cas Grub m'a l'air à jour et selon moi tu démarres bien ce qu'il
> considère être le noyau 5.10.0-5-amd64, simplement il l'appelle "Debian
> GNU/Linux" dans le menu

Je n'ai pas l'impression...
A voir donc après mon prochain reboot.

Merci.

David.

David BERCOT

unread,
Mar 29, 2021, 7:40:03 AM3/29/21
to
Bon, j'ai rebooté et... aucun changement...
Bizarrement, au démarrage, on dirait que la config est "gélée" et ne
tient pas compte des mises à jour précédentes.

Suis-je le seul dans ce cas ?

Merci.

David.

didier gaumet

unread,
Mar 30, 2021, 10:00:03 AM3/30/21
to
Le 29/03/2021 à 13:31, David BERCOT a écrit :
> Bon, j'ai rebooté et... aucun changement...
> Bizarrement, au démarrage, on dirait que la config est "gélée" et ne
> tient pas compte des mises à jour précédentes.
>
> Suis-je le seul dans ce cas ?

Une autre hypothèse: si tu as joué avec plusieurs installations de grub
(multiboot Linux en laissant chaque distro installer son propre grub, ou
usage un peu expérimental en spécifiant l'endroit où Grub doit
s'installer, etc...), peut-être le fichier /boot/grub/grub.cfg n'est-il
pas celui utilisé par grub et dans ce cas un simple grub-install avec en
paramètre ton disque (pas une partition) pourrait suffire à faire rentre
les choses dans l'ordre...

Sébastien NOBILI

unread,
Apr 2, 2021, 3:20:03 AM4/2/21
to
Bonjour,

Le 2021-03-29 13:31, David BERCOT a écrit :
> Bon, j'ai rebooté et... aucun changement...
> Bizarrement, au démarrage, on dirait que la config est "gélée" et ne
> tient pas compte des mises à jour précédentes.

Quand tu arrives sur l'écran de Grub (menu de sélection du système à
démarrer),
si tu édites la ligne sélectionnée (je ne me rappelle plus exactement de
la touche,
je dirais bien "e", elle est indiquée en bas de l'écran), est-ce que ce
que tu vois
correspond bien au noyau que tu aimerais voir démarrer (5.10.0-5-amd64)
?

Sébastien

David BERCOT

unread,
Apr 3, 2021, 1:10:03 PM4/3/21
to
Bonjour,

La réponse est oui...
Au bout d'un moment, ne sachant plus où chercher, j'ai ré-installé mon
portable et tout est maintenant OK.

Merci.

David.
0 new messages