VirtualBox with EFI enabled with Win 10 Pro x86_64 installed first and Ubuntu 19.10 installed after Windows to the latest additional partition of /dev/sda. On fresh install with all updates:
1. Make sure you can boot both Windows and Ubuntu
2. Purge all shim* and grub* packages
3. sudo apt autoremove --purge
4. sudo rm -rf /boot/efi/EFI/ubuntu /boot/efi/EFI/grub /boot/grub
5. sudo apt install grub-efi-amd64-bin
6. sudo grub-install /dev/sda
7. sudo update-grub
8. Try to boot windows. Grub should blink and return you back to the menu.
You should have only the following packages installed:
For anyone trying to reproduce:
VirtualBox with EFI enabled with Win 10 Pro x86_64 installed first and Ubuntu 19.10 installed after Windows to the latest additional partition of /dev/sda. On fresh install with all updates:
1. Make sure you can boot both Windows and Ubuntu EFI/ubuntu /boot/efi/EFI/grub /boot/grub
2. Purge all shim* and grub* packages
3. sudo apt autoremove --purge
4. sudo rm -rf /boot/efi/
5. sudo apt install grub-efi-amd64-bin
6. sudo grub-install /dev/sda
7. sudo update-grub
8. Try to boot windows. Grub should blink and return you back to the menu.
You should have only the following packages installed:
* grub-efi-amd64-bin
* grub-efi-amd64
* grub-common
* grub2-common
There should be no shim packages.
Then try:
sudo add-apt-repository ppa:xeron- oskom/grub2
sudo apt update
sudo apt dist-upgrade
sudo grub-install /dev/sda
sudo update-grub
You should be able to boot Windows again.