@Awoosh25
If your question is how to fix boot problems with a Linux machine, then you've come to the wrong place -- as we do not provide detailed Linux support.
Your best bet for Linux support is to contact the support forum for the Linux distro you are using -- in this case, the Ubuntu Forums: http://ubuntuforums.org/
Folks on Linux support forums have experience using a variety of machines with Linux and know a lot about driver and installation issues. You will be able to get sound and detailed help there.
Good Luck
I am a volunteer and I do not work for, nor represent, HP