Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4516

How do I cleanly and completely remove Grub on Ubuntu 22.04

$
0
0

I have replaced Grub with rEFInd on my system and am very happy about it. I now wish to completely uninstall Grub and make sure that Ubuntu isn't bringing it back the next time it installs updates.

I tried with sudo apt-get purge grub-pc but it is failing with:

Some packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies: shim-signed : Depends: grub-efi-amd64-signed (>= 1.187.2~) but it is not going to be installed or                        grub-efi-arm64-signed (>= 1.187.2~) but it is not installableE: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

I understand I can try to find all Grub related packages and remove them one after the other, but there must be a better way than that? Also that won't remove Grub's files from /boot/efi/ and leave Grub's entry in the EFI Boot Manager behind from what I understand.

And do I need to do anything more to stop Ubuntu from automatically forcing Grub on me again the next time it installs any updates?


Viewing all articles
Browse latest Browse all 4516

Trending Articles