Check out distrobox. It’s a way to have a Ubuntu (or any other Linux distro) container and allows you to install Ubuntu packages, even desktop applications.
It works great for when you need to install a random .deb file or follow a very Ubuntu specific step by step procedure. I use it exactly for this kind of stuff.
No rebooting needed, integrates fully with the host system, no virtual machine either.
I run a nh-d15 on a 5800x. It’s expensive, but I have to say at least on the 5800x it can cool the CPU so well that it never gets loud. At most I get a slight noise of air moving.