Bug#984520: 'error: symbol "grub_register_command_lockdown" not found' and then lightdm fails to start
Jesús Ángel
jesusangel.delpozo at gmail.com
Thu Jun 3 10:07:27 BST 2021
Package: grub2
Version: 2.02+dfsg1-20+deb10u4
Followup-For: Bug #984520
Dear Maintainer,
I am also facing this error every now and then. Sometimes GRUB doesn't
boot and keeps showing "error: symbol `grub_register_command_lockdown'
not found.".
On pressing any key, GRUB restarts and I get the same error again.
I can fix the issue by booting into a Knoppix live, mounting the
filesystem under
/mnt, chrooting into it and running grub-install /dev/sda. However, it's
quite
annoying and time-wasting.
I wonder how is it possible to fix the problem just by running the
grub-install
command again. I don't know either what's triggering this issue, but I
think the
one to blame is some kernel upgrade which triggers a grub-update.
Yours faithfully,
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/mapper/root / ext4 rw,relatime,errors=remount-ro 0 0
/dev/vda1 /boot ext3 rw,relatime,errors=remount-ro 0 0
/dev/mapper/var /var ext4 rw,relatime,errors=remount-ro 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/vda
(hd1) /dev/vdb
*********************** END /boot/grub/device.map
*********************** BEGIN /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 ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root b80ab3af-3b43-40f4-99b1-168a721ea949
else
search --no-floppy --fs-uuid --set=root b80ab3af-3b43-40f4-99b1-168a721ea949
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=en_US
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=30
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=30
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-b80ab3af-3b43-40f4-99b1-168a721ea949' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1' 0dfb2e8d-27fe-4ff5-bf51-3d873f3910b9
else
search --no-floppy --fs-uuid --set=root 0dfb2e8d-27fe-4ff5-bf51-3d873f3910b9
fi
echo 'Loading Linux 4.19.0-16-amd64 ...'
linux /vmlinuz-4.19.0-16-amd64 root=UUID=b80ab3af-3b43-40f4-99b1-168a721ea949 ro quiet systemd.show_status=1 acpi=force net.ifnames=0 biosdevname=0 rd.luks.name=c9430ec8-ae4b-4a84-9371-9746e87fff7c=root rd.neednet=1 ip=10.0.0.121:::255.255.255.0:tornavacas:eth1:none:10.0.0.103:10.0.0.104
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.19.0-16-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-b80ab3af-3b43-40f4-99b1-168a721ea949' {
menuentry 'Debian GNU/Linux, with Linux 4.19.0-16-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-16-amd64-advanced-b80ab3af-3b43-40f4-99b1-168a721ea949' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1' 0dfb2e8d-27fe-4ff5-bf51-3d873f3910b9
else
search --no-floppy --fs-uuid --set=root 0dfb2e8d-27fe-4ff5-bf51-3d873f3910b9
fi
echo 'Loading Linux 4.19.0-16-amd64 ...'
linux /vmlinuz-4.19.0-16-amd64 root=UUID=b80ab3af-3b43-40f4-99b1-168a721ea949 ro quiet systemd.show_status=1 acpi=force net.ifnames=0 biosdevname=0 rd.luks.name=c9430ec8-ae4b-4a84-9371-9746e87fff7c=root rd.neednet=1 ip=10.0.0.121:::255.255.255.0:tornavacas:eth1:none:10.0.0.103:10.0.0.104
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.19.0-16-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-16-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-16-amd64-recovery-b80ab3af-3b43-40f4-99b1-168a721ea949' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1' 0dfb2e8d-27fe-4ff5-bf51-3d873f3910b9
else
search --no-floppy --fs-uuid --set=root 0dfb2e8d-27fe-4ff5-bf51-3d873f3910b9
fi
echo 'Loading Linux 4.19.0-16-amd64 ...'
linux /vmlinuz-4.19.0-16-amd64 root=UUID=b80ab3af-3b43-40f4-99b1-168a721ea949 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.19.0-16-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-14-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-14-amd64-advanced-b80ab3af-3b43-40f4-99b1-168a721ea949' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1' 0dfb2e8d-27fe-4ff5-bf51-3d873f3910b9
else
search --no-floppy --fs-uuid --set=root 0dfb2e8d-27fe-4ff5-bf51-3d873f3910b9
fi
echo 'Loading Linux 4.19.0-14-amd64 ...'
linux /vmlinuz-4.19.0-14-amd64 root=UUID=b80ab3af-3b43-40f4-99b1-168a721ea949 ro quiet systemd.show_status=1 acpi=force net.ifnames=0 biosdevname=0 rd.luks.name=c9430ec8-ae4b-4a84-9371-9746e87fff7c=root rd.neednet=1 ip=10.0.0.121:::255.255.255.0:tornavacas:eth1:none:10.0.0.103:10.0.0.104
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.19.0-14-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-14-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-14-amd64-recovery-b80ab3af-3b43-40f4-99b1-168a721ea949' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1' 0dfb2e8d-27fe-4ff5-bf51-3d873f3910b9
else
search --no-floppy --fs-uuid --set=root 0dfb2e8d-27fe-4ff5-bf51-3d873f3910b9
fi
echo 'Loading Linux 4.19.0-14-amd64 ...'
linux /vmlinuz-4.19.0-14-amd64 root=UUID=b80ab3af-3b43-40f4-99b1-168a721ea949 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.19.0-14-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 ###
### 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 ###
*********************** END /boot/grub/grub.cfg
*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat
*********************** BEGIN LVM
*********************** END LVM
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 May 6 17:55 ata-QEMU_DVD-ROM_QM00001 -> ../../sr0
lrwxrwxrwx 1 root root 10 May 6 17:55 dm-name-root -> ../../dm-0
lrwxrwxrwx 1 root root 10 May 6 17:55 dm-name-var -> ../../dm-1
lrwxrwxrwx 1 root root 10 May 6 17:55 dm-uuid-CRYPT-LUKS2-7fa8598c555f410fb89f14a6a6ae353c-var -> ../../dm-1
lrwxrwxrwx 1 root root 10 May 6 17:55 dm-uuid-CRYPT-LUKS2-c9430ec8ae4b4a8493719746e87fff7c-root -> ../../dm-0
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 May 6 17:55 0dfb2e8d-27fe-4ff5-bf51-3d873f3910b9 -> ../../vda1
lrwxrwxrwx 1 root root 10 May 6 17:55 7fa8598c-555f-410f-b89f-14a6a6ae353c -> ../../vdd1
lrwxrwxrwx 1 root root 9 May 6 17:55 7fffd436-7f75-430d-8f47-3d8f9e60e039 -> ../../vdb
lrwxrwxrwx 1 root root 10 May 6 17:55 acc0acde-199e-4d18-ab21-c6e95a98490c -> ../../dm-1
lrwxrwxrwx 1 root root 10 May 6 17:55 b80ab3af-3b43-40f4-99b1-168a721ea949 -> ../../dm-0
lrwxrwxrwx 1 root root 10 May 6 17:55 c9430ec8-ae4b-4a84-9371-9746e87fff7c -> ../../vdc1
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: 10.9
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-16-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages grub2 depends on:
ii grub-common 2.02+dfsg1-20+deb10u4
ii grub-pc 2.02+dfsg1-20+deb10u4
grub2 recommends no packages.
grub2 suggests no packages.
-- no debconf information
More information about the Pkg-grub-devel
mailing list