"Failed to open/Failed to load image" messages for EFI files
Solution 1:
Your computer uses EFI firmware, and the Boot Repair output looks like the computer came with a Windows installation that you deleted and replaced with Ubuntu. I know you say it came with "an Acer Linux distribution," which is why I'm leading with what your Boot Repair output suggests, since the two are at odds. My suspicion is that, for whatever reason (maybe a defective firmware), Acer installed their Linux boot loader in a way that makes it look like the Windows boot loader, and the computer is still trying to boot via that boot loader. Other changes must have deleted follow-up boot loader programs, resulting in the error messages you're seeing.
I can think of several ways to fix this problem, but none of them is guaranteed to work, so you may need to try multiple approaches. I'll describe a couple that are most likely to work....
Method 1: Boot Repair
- Boot your Ubuntu installation medium in "try before installing" mode.
- Launch Boot Repair.
- Click the Advanced Options item.
- Select the "Backup and Rename Windows EFI Files" option.
- Click Apply to run Boot Repair.
Method 2: rEFInd
- Download the CD-R or USB flash drive version of my rEFInd boot manager from the links here.
- Create a medium using the image you downloaded.
- Boot into your firmware setup utility and disable Secure Boot. Unfortunately, how you do this varies from one system to another. See this page of mine for several examples of how to do it.
- Boot with the rEFInd medium.
- In rEFInd, select a Linux kernel image (
Boot boot\vmlinuz...
) to boot your current Ubuntu installation. - Install rEFInd by using the Debian package or PPA.
- Reboot. If rEFInd comes up, you should be able to boot Ubuntu and you'll be good. If not....
- Boot with the rEFInd medium you prepared earlier, and boot to Ubuntu, as in step #5.
- Open a terminal and type
sudo mvrefind /boot/efi/EFI/ubuntu /boot/efi/EFI/Microsoft/Boot
. - Reboot. With any luck, rEFInd will appear.
You may optionally re-enable Secure Boot, and you may want to delete redundant boot loader files from /boot/efi/EFI/*/
directories or edit refind.conf
in /boot/efi/EFI/refind/
or /boot/efi/EFI/Microsoft/Boot
to uncomment and add boot loaders to the dont_scan_dirs
or dont_scan_files
lines.