I have just run sudo apt update on a VM of Xubuntu-26.04 and completely lost the /etc/default/grub file; it simply disappeared!
Before rebooting I reinstalled all the grub packages that synaptic showed to be installed andnoticed that thankfully the missing file was restored but now with its default content which I always edit so the grub menu shows at every boot.
What on earth could have caused this to happen?
Anyone else seen anything similar to this recently.
1 Like
Hi! Just happened to me too!
I think it is related that i did apt purge grub-pc.
This solved: sudo apt install --reinstall grub2-common grub-efi-amd64