Need help to install Virtualbox on Ubuntu 22

I am following the “DevOps Pre-Requisite Course”.

In the “Labs Setup” Section there are videos on how to install and setup Virtualbox on Mac and Windows but not on Linux.

Now, I use Ubuntu 22.04 as my OS and I have followed a lot of online blogs and YouTube videos on installing VirtualBox on my OS but failed everytime.

Can someone please help installing and setting-up VirtualBox on Ubuntu 22.04?

Go to the VirtualBox site, follow the Downloads link. Download Ubuntu 22.04 deb package. Then run in a terminal:
sudo dpkg -i <virtualbox.deb>
You will then need to do as it says to install the package requirements:
sudo apt install --fix-broken (or something like this)