Managed to fix the issue. I reinstalled Ubuntu and followed the same steps as before, except I didn't do the update and upgrade step before downloading the installer script.