LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   kubuntu 20.04 does not allow to update or install new packages (https://www.linuxquestions.org/questions/ubuntu-63/kubuntu-20-04-does-not-allow-to-update-or-install-new-packages-4175711995/)

rakitsa 05-12-2022 12:39 PM

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

ondoho 05-12-2022 12:45 PM

Quote:

Originally Posted by rakitsa (Post 6352599)
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

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).

rakitsa 05-12-2022 12:49 PM

does not help
 
/win/research/2022/8B/2minus/program1>sudo apt update
[sudo] password for rakitsa:
Сущ:1 http://ru.archive.ubuntu.com/ubuntu focal InRelease
Пол:2 http://ru.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Пол:3 http://ru.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Пол:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Сущ:5 https://dl.google.com/linux/chrome/deb stable InRelease
Сущ:6 http://ppa.launchpad.net/scribus/ppa/ubuntu focal InRelease
Пол:7 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,789 kB]
Пол:8 http://ru.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [650 kB]
Пол:9 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [278 kB]
Пол:10 http://ru.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [679 kB]
Пол:11 http://ru.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [921 kB]
Пол:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [40.7 kB]
Пол:13 http://ru.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [391 kB]
Пол:14 http://ru.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]
Пол:15 http://ru.archive.ubuntu.com/ubuntu focal-backports/main amd64 DEP-11 Metadata [9,600 B]
Пол:16 http://ru.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [30.8 kB]
Пол:17 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [66.3 kB]
Пол:18 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Получено 5,193 kB за 1с (4,956 kB/s)
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Может быть обновлено 86 пакетов. Запустите «apt list --upgradable» для их показа.
/win/research/2022/8B/2minus/program1>sudo apt -s full-upgrade
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Вы можете запустить «apt --fix-broken install» для исправления этих ошибок.
Следующие пакеты имеют неудовлетворённые зависимости:
linux-image-5.11.0-44-generic : Зависит: linux-modules-5.11.0-44-generic но он не установлен
E: Неудовлетворённые зависимости. Попытайтесь выполнить «apt --fix-broken install», не указывая имени пакета (или указав решение).
/win/research/2022/8B/2minus/program1>

ondoho 05-12-2022 12:58 PM

It's not supposed to help. We're gathering information.

Please repeat the commands like this:
Code:

sudo LC_ALL=C apt update
sudo LC_ALL=C apt -s full-upgrade

Please use CODE tags for full command output and code (see my signature).

rakitsa 05-12-2022 01:09 PM

Code:

/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>


ondoho 05-13-2022 11:25 AM

Quote:

Originally Posted by rakitsa (Post 6352609)
Code:

Try 'apt --fix-broken install' with no packages

Did you? Again, output please.

rakitsa 05-13-2022 11:45 AM

Code:

/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>


ondoho 05-13-2022 12:18 PM

Quote:

Originally Posted by rakitsa (Post 6352980)
Code:

/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.

rakitsa 05-13-2022 12:43 PM

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.

enigma9o7 05-13-2022 06:33 PM

You forgot to paste it tho, that's the important instruction from post #4, to allow others to see what's going on.

Anyways try this, and remember to paste the output here this time, in a code block.

Code:

export LC_ALL=C
sudo apt remove linux-image-5.11.0-44-generic
sudo apt --fix-broken install
sudo apt upgrade

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....

ondoho 05-14-2022 01:38 AM

Quote:

Originally Posted by rakitsa (Post 6353002)
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.

rakitsa 05-14-2022 03:18 AM

I have done what was suggested, namely,
Code:

export LC_ALL=C
sudo apt remove linux-image-5.11.0-44-generic
sudo apt --fix-broken install
sudo apt upgrade

Below is the output:

Code:

/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>


ondoho 05-14-2022 03:27 PM

Quote:

Originally Posted by rakitsa (Post 6353191)
Code:

/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.


Your next steps are outlined here.

rakitsa 05-15-2022 03:12 AM

Below is that file /boot/grub/grub.cfg.new where thesyntax error is supposed to be

rakitsa 05-15-2022 03:17 AM

Code:

#
# 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 ###



All times are GMT -5. The time now is 02:29 AM.