I had the same problem. After some search I managed to solve my problem with the following steps:
Download the iso's for Ubuntu 22.04 and Ubuntu 18.04. Create a bootable pen drive for both.
Boot the 22.04 pen drive and press E
on the grub option Try ubuntu without installing
.
Add acpi=off nomodeset
after /casper/vmlinuz
and press F10.
- Wifi will not work, the touchpad might have a weird behavior and the battery status will not show up, so make sure to plug the charger (after installation these problems won't exist).
On terminal run the command and follow the installation steps:
sudo ubiquity -b
- Turn off the computer by pressing the power button and boot the 18.04 live cd.
- On terminal, mount the newly installed system on
/mnt
:
sudo mount /dev/sda2 /mnt
sudo mkdir /mnt/boot/efi
sudo mount /dev/sda1 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
- Where
sda2
is the root partition and sda1
is the EFI system partition
- Load efivars:
sudo modprobe efivars
- Reinstall grub:
sudo apt-get install --reinstall grub-efi-amd64
sudo grub-install --no-nvram --root-directory=/mnt
- Change root to
/mnt
and update grub:
sudo chroot /mnt
update-grub
- Remove the package
secureboot-db
:
apt remove secureboot-db
apt-mark hold secureboot-db
- Move and rename the installed bootloader:
cd /boot/efi/EFI
cp -R ubuntu/* BOOT/
cd BOOT
cp grubx64.efi bootx64.efi
- Turn off the computer and boot the installed system, then run:
echo "grub-efi-amd64 grub2/force_efi_extra_removable boolean true" | sudo debconf-set-selections
sudo update-grub
- Reboot the system.
References: