Upgrade VirtualBox
Problem:
I have installed an older version of VirtualBox and need to upgrade to the latest version.
Solution:
First, uninstall all VirtualBox packages, then install the new VirtualBox version.
Step by step:
- Open a Terminal, then execute:
sudo apt purge "virtualbox*" sudo apt autoremoveYou can verify the removal:
dpkg -l | grep virtualbox - (Option A) Install the new VirtualBox version from the apt repository. You can install the version available in the repository, check the version, and if it’s the most recent, install it:
apt-cache showpkg virtualbox
sudo apt-get install virtualbox
-
(Option B) Install the most recent Virtual version from the official website:
Choose the right version for your operating system and platform: VirtualBox Download
To install, open a file explorer and double click or use a Terminal to execute:
sudo dpkg -i ~/Downloads/virtualbox.debRemember to replace the path or filename with yours.
Sources:
https://askubuntu.com/a/703750
https://www.linuxtechi.com/how-to-install-virtualbox-in-ubuntu
https://askubuntu.com/questions/40779/how-do-i-install-a-deb-file-via-the-command-line