Oracle VirtualBox reached the new major 5.2 release series with great new features and various bug-fixes and improvements.
New Features in VirtualBox 5.2:
- export VM to Oracle Cloud.
- Unattended guest installation, similar to VMware’s “Easy Install”
- Overhauled VM selector GUI (improved tools VM / global tools handling, new icons)
- Added experimental audio support for video recording
- Fixed warning about “XSAVE consistency problem”.
- Virtual Media Manager and Snapshot Pane rework
- Ability to enable/disable audio input/output, and more audio settings.
- Better EFI video mode handling, and support custom video modes
- See changelog for more.
How to Install Virtualbox 5.2 in Ubuntu:
1. Open terminal via Ctrl+Alt+T or from application launcher. Remove old Virtualbox via command:
sudo apt-get remove virtualbox virtualbox-5.1
2. Download & install the latest Virtualbox package from the link below:
3. If you’ve added the Oracle VBox repository, you can directly install the 5.2 release from Synaptic Package Manager or via apt command, after removing the old version.
To add the repository, do:
Open terminal (Ctrl+Alt+T) and run command to add the repository:
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" >> /etc/apt/sources.list.d/virtualbox.list'
Depends your Ubuntu edition, replace xenial
(for Ubuntu 16.04) with trusty
(for 14.04, Mint 17.x, eOS 0.3), or zesty
(for Ubuntu 17.04).
Setup the keyring so to trust the updates from the repository:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
Finally install virtualbox 5.2 via commands:
sudo apt-get update sudo apt-get install virtualbox-5.2
With the repository added, you can simply install the future 5.2 series updates via Software Updater.
doesnt work
I got the following (on Xenial):
sudo apt-get install virtualbox-5.2
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
virtualbox-5.2 : Depends: libpng12-0 (>= 1.2.13-4) but it is not installable
Depends: libvpx3 (>= 1.5.0) but it is not installable
Recommends: libsdl-ttf2.0-0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Same here…
same problem , i tried zesty and just works !
Same here
The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (4.13.0-16-generic) or it failed to
load. Please recompile the kernel module and install it by
sudo /sbin/vboxconfig
You will not be able to start VMs until this problem is fixed.
i tryed to run command with no luck
Same here, does not work on 16.04 or 18.04 …
~# apt-get install virtualbox-5.2
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
virtualbox-5.2 : Depends: libvpx3 (>= 1.5.0) but it is not installable
Recommends: libsdl-ttf2.0-0 but it is not going to be installed
Recommends: gcc but it is not going to be installed
Recommends: pdf-viewer
E: Unable to correct problems, you have held broken packages.
Same here .. i try to upgrade and update the system but still same problem
I kept getting kernel module missing error.
Steps I used to fix.
make sure you have the kernel headers installed.
the vbox install log file told me I was missing “libelf-dev” so i had to run sudo apt-get install libelf-dev
then I ran sudo /sbin/vboxconfig
the kernel module was built and i was able to run virtualbox.
great!!! work perfectly for me!!! thanks a lot!!!!
worked for me on Ubuntu 16.04.3 LTS. Thanks!
I had the same error as everybody, so I installed the virtualbox from the Oracle website (https://www.virtualbox.org/wiki/Linux_Downloads) directly instead of using this tutorial. Before I had to remove everything this tutorial did.
!! Please don’t just follow but think first, it worked for me but maybe you have a different config !!
sudo rm /etc/apt/sources.list.d/virtualbox.list
sudo apt-get purge virtualbox5.2
Install package from the website using the GUI
Afterwards I got another error when starting the virtual machine.
I installed the apt-get packages virtualbox-dkms and virtualbox-guest-dkms
I also had to run
sudo /sbin/vboxconfig
sudo /sbin/rcvboxdrv setup
Somebody in a forum said you have to run it after every reboot but I didn’t test it yet.
https://askubuntu.com/questions/705720/virtualbox-kernel-driver-not-installed-error-despite-running-sbin-vboxconfig
Hello Ji,
instead of typing the distribution name (‘xenial’ in your case), you can use ‘$(lsb_release -sc)’. This will solve the name automatically. This means:
sudo sh -c ‘echo “deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib” >> /etc/apt/sources.list.d/virtualbox.list’
instead of:
sudo sh -c ‘echo “deb http://download.virtualbox.org/virtualbox/debian xenial contrib” >> /etc/apt/sources.list.d/virtualbox.list’
This is because DKMS bit you in the ass and the directions do not state to remove virtualbox-dkms. I’ve been using Linux since the early days (1991 first distribution was yggrasil!) All you need to do is run apt-get remove virtualbox-dkms
It works. Just dont forget to create the virtualbox.list or else nothing will work.
it gives me
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package virtualbox-5.2
E: Couldn’t find any package by glob ‘virtualbox-5.2’
E: Couldn’t find any package by regex ‘virtualbox-5.2’
what should i do??
Solved. Just use synaptic to remove virtualbox-dkms. There is no “new” version of it. 5.2 does not use dkms. Ubuntu 17.10
Thanks, all for your tips. I found Jerry Normandin’s advice the most helpful, and finally got what seemed a clean install. Unfortunately, now when I build a VM (which I couldn’t do for the past 3 days) the VM will build without failing, BUT the video seems out of sync. I installed using the ppa’s for ubuntu18, I installed virtualbox and the extension pack. Any ideas?