I had tried in vain to install Debian (which didn't work) and after that I have installed Ubuntu with LVM. Now I still have the boot entry for both OS (F7 key on startup). Both OSes were installed by using LVM-encryption and encryption.
As suggested I installed grub-customizer, which looks like this:
No mention of Debian there. How can I get rid of this entry?
Output of efibootmgr
:
nuc@nuc:~$ sudo efibootmgr
[sudo] Passwort für nuc:
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0004,0002,0003
Boot0001* ubuntu
Boot0002* UEFI: PXE IPv4 Intel(R) Ethernet Connection (10) I219-V
Boot0003* UEFI: PXE IPv6 Intel(R) Ethernet Connection (10) I219-V
Boot0004* debian
According to the information acquired in the comments, you only want to remove the Debian entry from the UEFI boot menu. To do that:
Open a terminal and run:
The output will be, as stated in the question, like this:
To remove the unwanted entry (
debian
in this case), run:which will delete the following entry:
Boot0004* debian
.After that, remove the
debian
folder from the EFI partition by running:Since
grub
doesn't seem to have references todebian
, the process stops here.At the reboot you shouldn't see
debian
anymore.Thanks to this answer and mook765.