How to install VirtualBox - kdaisho/Blog GitHub Wiki
Host machine: Ubuntu
Download VirtualBox via browser
Download VirtualBox from Oracle website
Install via Terminal
Go to the directory that deb
file was downloaded, then run:
sudo dpkg -i {DOWNLOADED_FILE_NAME}.deb
Reference: https://www.youtube.com/watch?v=eor4YCo2K9c&t=69s
However when you try, you might get errors:
dpkg: dependency problems prevent configuration of virtualbox-{version}
virtualbox-{version} depends on liblzf1 (>= 1.5); however:
Package liblzf1 is not installed.
virtualbox-{version} depends on libqt{version}help{version} (>= 1.5); however:
Package libqt{version}help{version} is not installed.
...
Let's install those missing dependencies.
sudo add-apt-repository universe
sudo apt update
sudp apt install liblzf1 libqt{version}help{version}
Then, if you are prompted to run this, run it.
sudo apt --fix-broken install
Now the installation should work.
sudo dpkg -i {DOWNLOADED_FILE_NAME}.deb