apt update breaks grub on Ubuntu 20.04
I created an Ubuntu 20.04 droplet and followed the How To Install and Configure Laravel with Nginx on Ubuntu 20.04 and when I logged in I saw:
96 updates can be installed immediately. 34 of these updates are security updates.
So first thing I did was run
apt-get update apt-get upgrade
I get a package configuration for Configuring grub-pc,
GRUB failed to install to the following devices: /dev/sda Do you want to continue anyway? If you do, your computer may not start up properly. Writing GRUB to boot device failed - continue?
If I choose yes, complete the upgrade, then reboot it doesn’t come back. When I look in the console from the droplet menu I have a grub error.
error: symbol 'grub_calloc' not found. Entering Rescue mode... grub rescue>
How am I supposed to update my droplet from a base image without triggering this landmine?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×