I want to remove VirtualBox and its dependencies from my Ubuntu 18.04 and install the latest version. Please help me.
To remove VirtualBox on Ubuntu 18 with the installed packages, use the apt-get command along with entering the exact version of the VirtualBox that is installed on your system as follows:
sudo apt-get remove --purge virtualbox
Enter the following commands to delete all the virtual machines directory and its settings:
sudo rm ~/"VirtualBox VMs" -Rf
sudo rm ~/.config/VirtualBox/ -Rf
After removing the VirtualBox completely, you can install the new or another version you want using the following command:
sudo apt-get install virtualbox
+8595670151
7 days a week, 24 hours a day