[SOLVED] kubuntu 20.04 does not allow to update or install new packages
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
kubuntu 20.04 does not allow to update or install new packages
Kubuntu 20.04
kernel: 5.13.0-27-generic
For several months everything worked fine, but recently an attempt to do any update or to install a new package produces the following message:
Package failed to install Error while installing package: installed linux-image-5.13.0-30-generic package post-removal script subprocess returned exit status 1
For several months everything worked fine, but recently an attempt to do any update or to install a new package produces the following message:
Package failed to install Error while installing package: installed linux-image-5.13.0-30-generic package post-removal script subprocess returned exit status 1
Please open a terminal and enter the following:
Code:
sudo apt update
sudo apt -s full-upgrade
And share it here.
Please use CODE tags for full command output and code (see my signature).
/win/research/2022/8B/2minus/program1>sudo LC_ALL=C apt update
[sudo] password for rakitsa:
Hit:1 http://ru.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://ru.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://ru.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:5 http://ppa.launchpad.net/scribus/ppa/ubuntu focal InRelease
Hit:6 https://dl.google.com/linux/chrome/deb stable InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
86 packages can be upgraded. Run 'apt list --upgradable' to see them.
/win/research/2022/8B/2minus/program1>sudo LC_ALL=C apt -s full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
linux-image-5.11.0-44-generic : Depends: linux-modules-5.11.0-44-generic but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
/win/research/2022/8B/2minus/program1>
/win/research/2022/8B/2minus/program1>sudo apt --fix-broken install
[sudo] password for rakitsa:
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Исправление зависимостей… Готово
Следующий пакет устанавливался автоматически и больше не требуется:
libfwupdplugin1
Для его удаления используйте «sudo apt autoremove».
Будут установлены следующие дополнительные пакеты:
linux-image-unsigned-5.13.0-30-generic linux-modules-5.11.0-44-generic
Предлагаемые пакеты:
linux-doc | linux-hwe-5.13-source-5.13.0 linux-hwe-5.13-tools linux-headers-5.13.0-30-generic
linux-modules-extra-5.13.0-30-generic
Следующие пакеты будут УДАЛЕНЫ:
linux-image-5.13.0-30-generic
Следующие НОВЫЕ пакеты будут установлены:
linux-image-unsigned-5.13.0-30-generic linux-modules-5.11.0-44-generic
Обновлено 0 пакетов, установлено 2 новых пакетов, для удаления отмечено 1 пакетов, и 86 пакетов не обновлено.
Установлено или удалено не до конца 8 пакетов.
Необходимо скачать 0 B/39.6 MB архивов.
После данной операции объём занятого дискового пространства возрастёт на 97.2 MB.
Хотите продолжить? [Y/n] y
dpkg: linux-image-5.13.0-30-generic: имеются проблемы с зависимостями, но по вашему указанию
он всё равно будет удалён:
linux-modules-5.13.0-30-generic зависит от linux-image-5.13.0-30-generic | linux-image-unsigned-5.13.0-30-generic, однако:
Пакет linux-image-5.13.0-30-generic будет удалён.
Пакет linux-image-unsigned-5.13.0-30-generic не установлен.
(Чтение базы данных … на данный момент установлено 756487 файлов и каталогов.)
Удаляется linux-image-5.13.0-30-generic (5.13.0-30.33~20.04.1) …
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.13.0-30-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 ...
using custom appearance settings
Found linux image: /boot/vmlinuz-5.13.0-39-generic
Found initrd image: /boot/initrd.img-5.13.0-39-generic
Found linux image: /boot/vmlinuz-5.13.0-37-generic
Found initrd image: /boot/initrd.img-5.13.0-37-generic
Found linux image: /boot/vmlinuz-5.13.0-35-generic
Found initrd image: /boot/initrd.img-5.13.0-35-generic
Found linux image: /boot/vmlinuz-5.13.0-28-generic
Found initrd image: /boot/initrd.img-5.13.0-28-generic
Found linux image: /boot/vmlinuz-5.13.0-27-generic
Found initrd image: /boot/initrd.img-5.13.0-27-generic
Found linux image: /boot/vmlinuz-5.13.0-25-generic
Found initrd image: /boot/initrd.img-5.13.0-25-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 403
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: ошибка при обработке пакета linux-image-5.13.0-30-generic (--remove):
installed linux-image-5.13.0-30-generic package post-removal script subprocess returned error exit status 1
dpkg: слишком много ошибок — останавливаемся
При обработке следующих пакетов произошли ошибки:
linux-image-5.13.0-30-generic
Обработка остановлена из-за слишком большого количества ошибок.
E: Sub-process /usr/bin/dpkg returned an error code (1)
/win/research/2022/8B/2minus/program1>
/win/research/2022/8B/2minus/program1>sudo apt --fix-broken install
[sudo] password for rakitsa:
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Исправление зависимостей… Готово
Следующий пакет устанавливался автоматически и больше не требуется:
libfwupdplugin1
Для его удаления используйте «sudo apt autoremove».
Будут установлены следующие дополнительные пакеты:
linux-image-unsigned-5.13.0-30-generic linux-modules-5.11.0-44-generic
Предлагаемые пакеты:
linux-doc | linux-hwe-5.13-source-5.13.0 linux-hwe-5.13-tools linux-headers-5.13.0-30-generic
linux-modules-extra-5.13.0-30-generic
Следующие пакеты будут УДАЛЕНЫ:
linux-image-5.13.0-30-generic
Следующие НОВЫЕ пакеты будут установлены:
linux-image-unsigned-5.13.0-30-generic linux-modules-5.11.0-44-generic
Обновлено 0 пакетов, установлено 2 новых пакетов, для удаления отмечено 1 пакетов, и 86 пакетов не обновлено.
Установлено или удалено не до конца 8 пакетов.
Необходимо скачать 0 B/39.6 MB архивов.
После данной операции объём занятого дискового пространства возрастёт на 97.2 MB.
Хотите продолжить? [Y/n] y
dpkg: linux-image-5.13.0-30-generic: имеются проблемы с зависимостями, но по вашему указанию
он всё равно будет удалён:
linux-modules-5.13.0-30-generic зависит от linux-image-5.13.0-30-generic | linux-image-unsigned-5.13.0-30-generic, однако:
Пакет linux-image-5.13.0-30-generic будет удалён.
Пакет linux-image-unsigned-5.13.0-30-generic не установлен.
(Чтение базы данных … на данный момент установлено 756487 файлов и каталогов.)
Удаляется linux-image-5.13.0-30-generic (5.13.0-30.33~20.04.1) …
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.13.0-30-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 ...
using custom appearance settings
Found linux image: /boot/vmlinuz-5.13.0-39-generic
Found initrd image: /boot/initrd.img-5.13.0-39-generic
Found linux image: /boot/vmlinuz-5.13.0-37-generic
Found initrd image: /boot/initrd.img-5.13.0-37-generic
Found linux image: /boot/vmlinuz-5.13.0-35-generic
Found initrd image: /boot/initrd.img-5.13.0-35-generic
Found linux image: /boot/vmlinuz-5.13.0-28-generic
Found initrd image: /boot/initrd.img-5.13.0-28-generic
Found linux image: /boot/vmlinuz-5.13.0-27-generic
Found initrd image: /boot/initrd.img-5.13.0-27-generic
Found linux image: /boot/vmlinuz-5.13.0-25-generic
Found initrd image: /boot/initrd.img-5.13.0-25-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 403
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: ошибка при обработке пакета linux-image-5.13.0-30-generic (--remove):
installed linux-image-5.13.0-30-generic package post-removal script subprocess returned error exit status 1
dpkg: слишком много ошибок — останавливаемся
При обработке следующих пакетов произошли ошибки:
linux-image-5.13.0-30-generic
Обработка остановлена из-за слишком большого количества ошибок.
E: Sub-process /usr/bin/dpkg returned an error code (1)
/win/research/2022/8B/2minus/program1>
Seriously?
Please look at post #4 and try again.
Thank you.
Explanation:
First line will set the terminal to english, so we can understand your output better. (Until you close that terminal).
Next line removes an old kernel package you don't need anymore that is improperly installed.
Next line is just incase it's still broken, so can see the output. It might do nothing.
Final line hopefully works, but if not, want to see the output.
Also seems you've got some mistake in your /etc/default/grub but not causing any problem, just noise....
I have repeated the steps you instructed me in the post #4. The results are exactly the same. It seems that the only solution is to reinstall Linux.
Once again: it wasn't supposed to fix anything. We're gathering information.
And since this is an English language forum, it is YOUR task to translate that info, not mine.
/win/research/2022/8B/2minus/program1>export LC_ALL=C
/win/research/2022/8B/2minus/program1>sudo apt remove linux-image-5.11.0-44-generic
[sudo] password for rakitsa:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
linux-modules-5.13.0-30-generic : Depends: linux-image-5.13.0-30-generic but it is not going to be installed or
linux-image-unsigned-5.13.0-30-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
/win/research/2022/8B/2minus/program1>sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
linux-image-unsigned-5.13.0-30-generic linux-modules-5.11.0-44-generic
Suggested packages:
linux-doc | linux-hwe-5.13-source-5.13.0 linux-hwe-5.13-tools linux-headers-5.13.0-30-generic
linux-modules-extra-5.13.0-30-generic
The following packages will be REMOVED:
linux-image-5.13.0-30-generic
The following NEW packages will be installed:
linux-image-unsigned-5.13.0-30-generic linux-modules-5.11.0-44-generic
0 upgraded, 2 newly installed, 1 to remove and 86 not upgraded.
8 not fully installed or removed.
Need to get 0 B/39.6 MB of archives.
After this operation, 97.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: linux-image-5.13.0-30-generic: dependency problems, but removing anyway as you requested:
linux-modules-5.13.0-30-generic depends on linux-image-5.13.0-30-generic | linux-image-unsigned-5.13.0-30-generic; however:
Package linux-image-5.13.0-30-generic is to be removed.
Package linux-image-unsigned-5.13.0-30-generic is not installed.
(Reading database ... 756487 files and directories currently installed.)
Removing linux-image-5.13.0-30-generic (5.13.0-30.33~20.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.13.0-30-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 ...
using custom appearance settings
Found linux image: /boot/vmlinuz-5.13.0-39-generic
Found initrd image: /boot/initrd.img-5.13.0-39-generic
Found linux image: /boot/vmlinuz-5.13.0-37-generic
Found initrd image: /boot/initrd.img-5.13.0-37-generic
Found linux image: /boot/vmlinuz-5.13.0-35-generic
Found initrd image: /boot/initrd.img-5.13.0-35-generic
Found linux image: /boot/vmlinuz-5.13.0-28-generic
Found initrd image: /boot/initrd.img-5.13.0-28-generic
Found linux image: /boot/vmlinuz-5.13.0-27-generic
Found initrd image: /boot/initrd.img-5.13.0-27-generic
Found linux image: /boot/vmlinuz-5.13.0-25-generic
Found initrd image: /boot/initrd.img-5.13.0-25-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 403
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.13.0-30-generic (--remove):
installed linux-image-5.13.0-30-generic package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-image-5.13.0-30-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
/win/research/2022/8B/2minus/program1>sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
linux-image-5.11.0-44-generic : Depends: linux-modules-5.11.0-44-generic but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
/win/research/2022/8B/2minus/program1>
/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 ...
using custom appearance settings
(...)
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 403
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
#
# 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 [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="Ubuntu"
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 initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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
}
terminal_input console
terminal_output console
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=white/black
set menu_color_highlight=black/light-gray
#set_background_image "images/tile.png";
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 0,0,0; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if [ ${grub_platform} != pc ]; then
set linux_gfx_mode=keep
elif hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
load_video
gfxmode $linux_gfx_mode
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
linux /boot/vmlinuz-5.13.0-39-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro usbcore usbcore.autosuspend=-1.autosuspend=-1 quiet splash $vt_handoff
initrd /boot/initrd.img-5.13.0-39-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-2a811189-d67e-4b1f-bde3-20843820988c' {
menuentry 'Ubuntu, with Linux 5.13.0-39-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-39-generic-advanced-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
load_video
gfxmode $linux_gfx_mode
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
echo 'Loading Linux 5.13.0-39-generic ...'
linux /boot/vmlinuz-5.13.0-39-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro usbcore usbcore.autosuspend=-1.autosuspend=-1 quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.13.0-39-generic
}
menuentry 'Ubuntu, with Linux 5.13.0-39-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-39-generic-recovery-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
echo 'Loading Linux 5.13.0-39-generic ...'
linux /boot/vmlinuz-5.13.0-39-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.13.0-39-generic
}
menuentry 'Ubuntu, with Linux 5.13.0-37-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-37-generic-advanced-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
load_video
gfxmode $linux_gfx_mode
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
echo 'Loading Linux 5.13.0-37-generic ...'
linux /boot/vmlinuz-5.13.0-37-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro usbcore usbcore.autosuspend=-1.autosuspend=-1 quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.13.0-37-generic
}
menuentry 'Ubuntu, with Linux 5.13.0-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-37-generic-recovery-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
echo 'Loading Linux 5.13.0-37-generic ...'
linux /boot/vmlinuz-5.13.0-37-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.13.0-37-generic
}
menuentry 'Ubuntu, with Linux 5.13.0-35-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-35-generic-advanced-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
load_video
gfxmode $linux_gfx_mode
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
echo 'Loading Linux 5.13.0-35-generic ...'
linux /boot/vmlinuz-5.13.0-35-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro usbcore usbcore.autosuspend=-1.autosuspend=-1 quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.13.0-35-generic
}
menuentry 'Ubuntu, with Linux 5.13.0-35-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-35-generic-recovery-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
echo 'Loading Linux 5.13.0-35-generic ...'
linux /boot/vmlinuz-5.13.0-35-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.13.0-35-generic
}
menuentry 'Ubuntu, with Linux 5.13.0-28-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-28-generic-advanced-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
load_video
gfxmode $linux_gfx_mode
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
echo 'Loading Linux 5.13.0-28-generic ...'
linux /boot/vmlinuz-5.13.0-28-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro usbcore usbcore.autosuspend=-1.autosuspend=-1 quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.13.0-28-generic
}
menuentry 'Ubuntu, with Linux 5.13.0-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-28-generic-recovery-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
echo 'Loading Linux 5.13.0-28-generic ...'
linux /boot/vmlinuz-5.13.0-28-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.13.0-28-generic
}
menuentry 'Ubuntu, with Linux 5.13.0-27-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-27-generic-advanced-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
load_video
gfxmode $linux_gfx_mode
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
echo 'Loading Linux 5.13.0-27-generic ...'
linux /boot/vmlinuz-5.13.0-27-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro usbcore usbcore.autosuspend=-1.autosuspend=-1 quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.13.0-27-generic
}
menuentry 'Ubuntu, with Linux 5.13.0-27-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-27-generic-recovery-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
echo 'Loading Linux 5.13.0-27-generic ...'
linux /boot/vmlinuz-5.13.0-27-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.13.0-27-generic
}
menuentry 'Ubuntu, with Linux 5.13.0-25-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-25-generic-advanced-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
load_video
gfxmode $linux_gfx_mode
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
echo 'Loading Linux 5.13.0-25-generic ...'
linux /boot/vmlinuz-5.13.0-25-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro usbcore usbcore.autosuspend=-1.autosuspend=-1 quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.13.0-25-generic
}
menuentry 'Ubuntu, with Linux 5.13.0-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-25-generic-recovery-2a811189-d67e-4b1f-bde3-20843820988c' {
recordfail
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
echo 'Loading Linux 5.13.0-25-generic ...'
linux /boot/vmlinuz-5.13.0-25-generic root=UUID=2a811189-d67e-4b1f-bde3-20843820988c ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.13.0-25-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/11_linux_zfs ###
### END /etc/grub.d/11_linux_zfs ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/21_memtest86+_proxy ###
### END /etc/grub.d/21_memtest86+_proxy ###
### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###
### BEGIN /etc/grub.d/40_custom_proxy ###
menuentry "Windows 10"{
}
# 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_proxy ###
### BEGIN /etc/grub.d/43_memtest86+_proxy ###
menuentry "Memory test (memtest86+)" {
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
knetbsd /boot/memtest86+.elf
}
menuentry "Memory test (memtest86+, serial console 115200)" {
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2a811189-d67e-4b1f-bde3-20843820988c
else
search --no-floppy --fs-uuid --set=root 2a811189-d67e-4b1f-bde3-20843820988c
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/43_memtest86+_proxy ###
### BEGIN /etc/grub.d/44_os-prober ###
### END /etc/grub.d/44_os-prober ###
### BEGIN /etc/grub.d/45_uefi-firmware ###
### END /etc/grub.d/45_uefi-firmware ###
### BEGIN /etc/grub.d/46_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/46_custom ###
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.