I've attached a screenshot to show both Ubuntu and Windows under OS boot manager. Ubuntu is the default in this picture. Power on and press F10 to access HP UEFI set up System Configuration > Boot Options > OS Boot manager (under UEFI Boot Order) If Ubuntu is the first option, then the PC will boot Ubuntu first. You can change the default with F5 and F6 keys.
If you have not resolved this issue, some HP computers do not have a System Configuration tab in the BIOS but do have a Boot Options tab with UEFI boot order below it and OS Boot Manager below that. Arrow down to OS Boot Manager and highlight and hit the Enter Key and it will show any options for different operating systems. If you want to move a highlighted entry down, hit the F5 key, to move it up, hit the F6 key.
Looks like the OP has abandoned the thread. I'll mention another solution anyway. Perhaps regular helpers will want to bookmark for next time. A lot of early-UEFI HPs (mine was originally Win 8.1) were hard-coded to boot Windows. One could modify the boot order (as discussed above) but the change didn't survive reboot, i.e., Windows automatically popped back to top of the list. What worked for me was an idea posted at Unix & Linux, to wit, leave Windows in first place but deactivate it. Seems absurd that's permitted but not changing boot order, but it worked for me and has for several others on Linux forums to whom I've suggested the fix.
Just a little more help please. I have HP250 quite a few years old now and have suffered this topic for many years, it is a nuisance! I do get System Configeration settings in bios and have is set up as shown inthe jpg screen shot shown previously but sub option that lists Windows/ubuntu does not appear after highlighting OS BOOT MGR so I cannot change the boot order. Can I edit the Os boot manager direct and place Ubuntu back on top as I don't use Windows very often .
Are you referring to the image in post 11? How do you boot now and which version of windows and Ubuntu do you use? Did you disable secure boot? Did you check your manual online for your specific HP? The OS Boot Manager option should have an arrrow/triangle next to it to indicate more than one option available and if none shows, that would indicate there are not multiple options.
Ubuntu Forums Code of Conduct