Conflict while updating virtualbox
I've never lost my VirtualBox guest OSs or settings when manually upgrading Oracle VirtualBox by manually uninstalling the old version and then downloading the latest version of Oracle VirtualBox and manually installing it by following the steps listed below. Your existing VirtualBox guest OS(s) will not be deleted if the version of Oracle VirtualBox is upgraded. Make sure that you also upgrade the Oracle VM VirtualBox Extension Pack so that it is the same version as whatever version of VirtualBox that is installed.
-
Show the name of the installed virtualbox package.
dpkg -l | grep virtualbox | grep ii
The results of this command should be something like
virtualbox-5.0
-
Uninstall the old version of VirtualBox
sudo dpkg -r virtualbox-5.0 # match the version of virtualbox with the results of step 1.
Download the latest version of Oracle VirtualBox for your Ubuntu release and Oracle VM VirtualBox Extension Pack from the official Oracle VirtualBox website. You might want to compare the SHA256 checksum that is provided on the download webpage to verify the integrity of the downloaded packages.
Change directories using
cd
to the directory containing the Oracle VirtualBox .deb file that you downloaded. In your question this file is named:
virtualbox-5.1_5.1.22-115126~Ubuntu~trusty_amd64.deb-
Install the latest version of Oracle VirtualBox for your Ubuntu release.
sudo dpkg -i virtualbox-5.1_5.1.22-115126~Ubuntu~trusty_amd64.deb