{{tag>troubleshooting ubuntu linux grub}} ====== Error: invalid environment block. Press any key to continue... ====== Press E at the GRUB menu. Find the line saying save_env recordfail and delete all **<<- this was not needed** Only these steps: sudo -i Then, run each command, one-by-one. cd /boot/grub rm grubenv grub-editenv grubenv create grub-editenv grubenv set default=0 grub-editenv grubenv list update-grub Nor anything after these commands. Simply reboot and it should be fixed. ====== Tested on ====== * Ubuntu 20.04.2 LTS ====== See also ====== * [[wiki:grub_errors|Grub errors]] * [[wiki:reinstall_grub_mdraid1_array|Reinstall grub on mdraid1 array]] ====== References ====== * https://askubuntu.com/questions/191852/error-invalid-environment-block-press-any-key-to-continue/191865#191865