@Debians
I'm sorry, but HP does not provide support for Linux distros.
IF you replace the preloaded Windows OS with a Linux distro, or add a Linux distro, then you assume full responsibility for maintaining that -- including solving any problems with booting the other OS and/or installing the other OS.
Modern PCs with UEFI, instead of the older BIOS, are especially difficult to install because you have to go into the UEFI settings and make several changes before you can even boot from a USB stick -- and we are unable to assist in that work.
Your best bet for support now is to contact the support forum of the distro you are using.
Since you are using Ubuntu, go here: https://ubuntuforums.org/
Good Luck
I am a volunteer and I do not work for, nor represent, HP