Thursday, 23 April 2020

How to upgrade VirtualBox on Ubuntu 18.04

In one of my previous posts I demonstrated how to install VirtualBox and I installed its version 6.0. But in the mean time a new version (6.1) has been released and I want to upgrade it.


Upgrading to the newer minor version


I was upgrading version 6 from 6.0 to 6.1:

Old version: 6.0.4
New version: 6.1.6


I downloaded the most recent deb package but installation failed:

~/Downloads$ sudo dpkg -i virtualbox-6.1_6.1.6-137129_Ubuntu_bionic_amd64.deb 
Selecting previously unselected package virtualbox-6.1.
dpkg: regarding virtualbox-6.1_6.1.6-137129_Ubuntu_bionic_amd64.deb containing virtualbox-6.1:
 virtualbox-6.1 conflicts with virtualbox
  virtualbox-6.0 provides virtualbox and is present and installed.

dpkg: error processing archive virtualbox-6.1_6.1.6-137129_Ubuntu_bionic_amd64.deb (--install):
 conflicting packages - not installing virtualbox-6.1
Errors were encountered while processing:
 virtualbox-6.1_6.1.6-137129_Ubuntu_bionic_amd64.deb

I checked the name of my previous installation:

~/Downloads$ dpkg -l | grep virtualbox
ii  virtualbox-6.0                                              6.0.4-128413~Ubuntu~bionic                       amd64        Oracle VM VirtualBox

...and used it to uninstall existing version:

~/Downloads$ sudo dpkg -r virtualbox-6.0 
(Reading database ... 290543 files and directories currently installed.)
Removing virtualbox-6.0 (6.0.4-128413~Ubuntu~bionic) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...

After this, the new installation was successful:

~/Downloads$ sudo dpkg -i virtualbox-6.1_6.1.6-137129_Ubuntu_bionic_amd64.deb 
(Reading database ... 289716 files and directories currently installed.)
Preparing to unpack virtualbox-6.1_6.1.6-137129_Ubuntu_bionic_amd64.deb ...
Unpacking virtualbox-6.1 (6.1.6-137129~Ubuntu~bionic) ...
Setting up virtualbox-6.1 (6.1.6-137129~Ubuntu~bionic) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Processing triggers for systemd (237-3ubuntu10.39) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.9-2) ...

Let's check the state of packages:

$ dpkg -l | grep virtualbox
rc  virtualbox-6.0                                              6.0.4-128413~Ubuntu~bionic                       amd64        Oracle VM VirtualBox
ii  virtualbox-6.1                                              6.1.6-137129~Ubuntu~bionic                       amd64        Oracle VM VirtualBox



First letter -> desired package state ("selection state"):
  • i ... install
  • r ... remove/deinstall
  • p ... purge (remove including config files)

Second letter -> current package state:
  • i ... installed
  • c ... config-files (only the config files are installed)

ii = It should be installed and it is installed
rc = It's removed/uninstalled but it's configuration files are still there

Upgrading to the newer patch version


I was upgrading version 6.1 from 6.1.6 to 6.1.16:

Old version: 6.1.6
New version: 6.1.16

Upgrading to the newer patch version (3rd number in the version) does not require uninstalling the previous version:

$ dpkg -l | grep virtualbox
rc  virtualbox-6.0                                              6.0.4-128413~Ubuntu~bionic            amd64        Oracle VM VirtualBox
ii  virtualbox-6.1                                              6.1.6-137129~Ubuntu~bionic            amd64        Oracle VM VirtualBox

$ sudo dpkg -i virtualbox-6.1_6.1.16-140961_Ubuntu_bionic_amd64.deb 
(Reading database ... 342850 files and directories currently installed.)
Preparing to unpack virtualbox-6.1_6.1.16-140961_Ubuntu_bionic_amd64.deb ...
Unpacking virtualbox-6.1 (6.1.16-140961~Ubuntu~bionic) over (6.1.6-137129~Ubuntu~bionic) ...
Setting up virtualbox-6.1 (6.1.16-140961~Ubuntu~bionic) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Processing triggers for systemd (245.4-4ubuntu3.3) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.15-1) ...

$ dpkg -l | grep virtualbox
rc  virtualbox-6.0                                              6.0.4-128413~Ubuntu~bionic            amd64        Oracle VM VirtualBox
ii  virtualbox-6.1                                              6.1.16-140961~Ubuntu~bionic           amd64        Oracle VM VirtualBox

1 comment:

micheal pan said...

BE SMART AND BECOME RICH IN LESS THAN 3DAYS....It all depends on how fast 
you can be to get the new PROGRAMMED blank ATM card that is capable of
hacking into any ATM machine,anywhere in the world. I got to know about 
this BLANK ATM CARD when I was searching for job online about a month 
ago..It has really changed my life for good and now I can say I'm rich and 
I can never be poor again. The least money I get in a day with it is about 
$50,000.(fifty thousand USD) Every now and then I keeping pumping money 
into my account. Though is illegal,there is no risk of being caught 
,because it has been programmed in such a way that it is not traceable,it 
also has a technique that makes it impossible for the CCTVs to detect 
you..For details on how to get yours today, email the hackers on : (
atmmachinehackers1@gmail.com ). Tell your 
loved once too, and start to live large. That's the simple testimony of how 
my life changed for good...Love you all ...the email address again is ;
atmmachinehackers1@gmail.com