How do I uninstall a problematic kernel?

It is better to do that without a GUI. GRUB is too important for me to trust a program which hides what it is doing exactly behind a GUI.

  1. First, create a backup of the /etc/default/grub file:

    cp /etc/default/grub $HOME
    
  2. Now, open /etc/default/grub with a text editor and add:

    GRUB_DEFAULT=saved
    GRUB_SAVEDEFAULT=true
    
  3. Update GRUB to save the changes:

    sudo update-grub
    
  4. Reboot to your working kernel, so that GRUB can save your choice for the next reboot.

  5. Now, list all the kernel packages:

    dpkg -l | egrep linux-'[g|i|m|h]'
    
  6. Once identified, you can remove any kernel package with 5.4.0-92 in its name (e.g. linux-image-5.4.0-92-generic, linux-headers-5.4.0-92, linux-modules-extra-5.4.0-92-generic, linux-modules-5.4.0-92-generic) via apt remove.

  7. If you want to avoid the problematic kernel coming with a future update, then run:

    sudo apt-mark hold linux-image-generic linux-headers-generic
    

    This will put a hold on the current linux-image-generic package and stop it from being updated.

    You can undo it with:

    sudo apt-mark unhold linux-image-generic linux-headers-generic
    

    but you may not want to do this, as it's possible that the following kernel update will boot without problems, and this stops the kernel from being updated to a newer version.

  8. To avoid that your running kernel gets uninstalled by apt autoremove, you can mark the kernel and header versions you want to keep on your system as manual. In your case the version you want to keep using is 5.4.0-91, so:

    sudo apt-mark manual linux-image-5.4.0-91-generic linux-headers-5.4.0-91-generic
    

Graphical User Interface

You can do that using the grub-customizer Package. You can install it using:

sudo apt install grub-customizer

After installing the package you can launch the application using:

grub-customizer

You'll get an interface like:

enter image description here

Right-click on the kernel causing errors( 5.4.0-92-generic), and select remove:

enter image description here

Now, right-click on the working kernel ( 5.4.0-91-generic) and select move up:

enter image description here

Click on the save button to save the changes:

enter image description here

After doing the above run this in a terminal:

sudo update-grub
sudo apt autoremove

That's it!

Reference

Note: To get support and correct drivers for the device I'm using Ubuntu 21.10 with a custom kernel. Don't mind the kernel versions in the image, they're just for reference.