"Grub failed to install to the following devices do you want to continue anyway? If you do your computer may not start up properly." #5910
-
I suspect this issue is related to having both Windows/Ubuntu-via-WSL 2 running (maybe?): I'm on a Windows 10 machine that has WSL 2 installed (Ubuntu 20.04). I was updating/reinstalling Docker per instructions [(https://docs.docker.com/engine/install/ubuntu/)] through the Ubuntu terminal and after the sudo apt update && sudo apt upgrade command, was prompted with the following:
I follow the suggestions and select all 5 devices, but then am blocked by this message:
That last sentence has me terrified. What to do here? Environment
Steps to reproduceWSL logs: Expected behaviorActual behavior |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Don't worry. Grub is a boot loader for the real Ubuntu on metal while WSL2 is a lightweight virtual machine and doesn't even need it to boot. There are plenty of messages that you can safely ignore in WSL2. They are shown because the distro thinks they are running in a real PC. |
Beta Was this translation helpful? Give feedback.
-
Okay, thanks that's what I suspected; as WSL2 is decoupled from the
physical metal, but I wanted to double check before doing anything
potentially irreversible. Thanks so much.
|
Beta Was this translation helpful? Give feedback.
-
There are a few related tickets eg #4903. There is probably a way to make the upstream grub package more tolerant of environments where is ends up installed but is not applicable, like WSL, Docker, diskless boots, etc. I tend to |
Beta Was this translation helpful? Give feedback.
Don't worry. Grub is a boot loader for the real Ubuntu on metal while WSL2 is a lightweight virtual machine and doesn't even need it to boot.
There are plenty of messages that you can safely ignore in WSL2. They are shown because the distro thinks they are running in a real PC.