Oracle have made java installation very easy, and hope for the future as well. One can download latest debain from Oracle and running the following commands:
1. sudo apt install ./jdk-17_linux-x64_bin.deb
2. sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-17/bin/java 2
Note:- Run command 1 where .deb file is stored, jdk version might ...
I had this problem after doing a fresh install of 20.04 on a DELL E5510.
The first messages were GRUB complaining the drive was encrypted. Then after another reinstall, I got the invalid arch message.
After several hours: 1. I switched my BIOS to UEFI and booted Live CD. 2. Ran Boot-Repair on my HDD. Boot repair then removed GRUB and installed grubx64.efi ...