15

I am not able to install grub-customizer in Ubuntu 22.04. Is there any other GUI alternatives for grub-customizer or is there any way to install grub-customizer.

3 Answers3

9

Grub Customizer has logic issue that could cause problems. In my case, after editing the text of Ubuntu entry in boot menu, manually add Kernel parameters by editing '/etc/default/grub' will no longer work, even after removed grub-customizer. I have to continue using the tool for the configurations.

Simon Chopin has explained in this bug report:

However, there are some customizations that are apparently not doable by simply editing the existing configuration scripts. For those, the program moves all existing conf scripts out of the way, and instead installs "proxy scripts" written in a custom language that basically filter the output of the original scripts. The language interpreter is a standard ELF binary with standard dynamic linking, which seems to need the whole Qt stack for some reason. Said interpreter is copied to /etc/grub.d/bin/grubcfg_proxy, presumably so that the system keeps working even if the user uninstalls grub-customizer.

That logic is actually broken, since removing the grub-customizer package might lead to the removal of its dependencies, e.g. the Qt stack, leading to a broken binary.

So grub-customizer is completely removed from Ubuntu 22.04 repository. Via UbuntuHandbook.

As @krumpelstiltskin answered, the software developer has updated the app and claimed that the bug mentioned above has been fixed. It's now available in PPA.

Pablo Bianchi
  • 17,371
Nim
  • 582
4

Grub customizer is available via the PPA. Follow the instructions therein.

0

grub-customizer package is not available for Ubuntu 22.10 or Ubuntu 23.04, and it doesn't install even using terminal commands. For all the broken kernel entries leftover from old Ubuntu versions cannot be deleted using sudo apt autoremove or purge as those kernels are not installed. Even apt purge linux-img-unsigned-5.* was ineffective. It shows the error message that package is not installed. You can install it, and then you are able to remove it. For some kernels it works. For kernel 5.15.0-33 and kernel 5.4.0-42 nothing worked.

Following steps cleaned the grub menu entries:

1. sudo rm -r /var/lib/apt/lists/* sudo apt-get auto clean sudo apt-get clean It is to clean the deprecated software ppas.

  1. Remove the broken kernel entries by using

    sudo rm /boot/vmlinuz-5.15.0-33*
    sudo rm /boot/vmlinuz-5.4.0-42*
    

    Also remove the System map and configure files Using remove command like

    sudo rm /boot/System-map-5.15*
    sudo rm /boot/configure-5.15*
    
  2. copy the grub entries file by

    sudo cp /boot/grub/grub.cfg grubBackup.cfb12 
    

    or any suitable name for back up of grub in case you need it to restore the Grub. Restore it if you need it by using

    sudo cp /boot/grub/grubBackup.cfg12 grub.cfg
    
  3. Remove menu entry from grub.cfg using

    sudo gnome-text-editor /boot/grub/grub.cfg
    

    for kernels 5.15.0-33 and 5.4.0-42. Save the grub.cfg file now and close the text editor.

  4. Update lists by

    sudo apt update
    

    and update grub also

    sudo update-grub
    

Last action is to upgrade the system also by using

sudo apt upgrade

Hope it would solve the problem of broken and residual menu entries of Ubuntu 23.04 grub.

Pablo Bianchi
  • 17,371
Falcone
  • 1
  • 2