Based on my experience my suggestion would be that:
Download the Ubuntu 24.04.2 ISO from https://releases.ubuntu.com/noble/ubuntu-24.04.2-desktop-amd64.iso, not 24.10 or 25.04.
Burn the ISO to a USB drive with enough space +8GB.
Rufus and BalenaEtcher are usually suitable, in Linux the dd command is also effective.
Start a live session of Ubuntu.
Once the boot is complete, open a terminal and run:
sudo apt update
sudo apt install gparted
sudo gparted
From gparted, select the hard drive.
Unmount it if it is mounted.
Create a new gpt partition table.
Disable secure boot and fast startup
In the free space, create:
1 giga partition, Efi-System (Fat32).
A 80-gigabyte partition, ext4 system.
Another 12-gigabyte partition, swap system.
Create another remaining partition that you plan to use for Linux, ext4 system.
Apply the changes.
Close gparted.
Close the terminal.
Start the installation.
Choose manual partitioning and select;
Grub, by default, on the hard drive.
The 80-gigabyte partition for /.
The 12-gigabyte partition for swap.
The remaining one for /home.
Continue with the installation.
Using Virtualbox for virtual machines.
Avoid the use of snap. Use the applications from their .deb packages. If they are not available use flatpak.