Last active
October 18, 2018 06:37
-
-
Save luisfc/60f7dc5a8686b706e8140bc23e26e231 to your computer and use it in GitHub Desktop.
Upgrade Virtualbox 5.1 to 5.2 on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to install VirtualBox 5.2 on Ubuntu | |
#Open a terminal "Ctrl + Alt + t" and remove Virtualbox 5.1. | |
sudo apt remove virtualbox virtualbox-5.1 | |
#Debian-based Linux distributions | |
#Add a new repository | |
#According of the distribution, replace '<mydist>' with 'artful', 'zesty', 'yakkety', 'xenial', 'trusty', 'stretch', 'jessie', or 'wheezy' (older versions of VirtualBox supported different distributions) | |
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian <mydist> contrib" >> /etc/apt/sources.list.d/virtualbox.list' | |
or add in /etc/apt/sources.list. | |
#Set Up the Oracle Keyring to enable a trust relationship with the new 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 - | |
#Install VirtualBox | |
sudo apt-get update | |
sudo apt-get install virtualbox-5.2 | |
#If there are old virtual machines and appear errors to open them. You can do: | |
sudo apt-get autoremove virtualbox or sudo apt-get autoremove | |
#Check if virtualbox-dkms is installed: | |
dpkg -l | grep virtualbox-dkms | |
#If yes, then delete it and install dkms | |
sudo apt-get purge virtualbox-dkms | |
sudo dpkg -P virtualbox-dkms | |
#Rebuild VirtualBox kernel modules: | |
sudo /sbin/vboxconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment