With windows 10 installed, it is probably using UEFI so you need to boot the Ubuntu medium UEFI and install UEFI. Some details on that at the Ubuntu documentation site below which you should read...