Site icon TechGit

How To Install VirtualBox On Linux Ubuntu 20.04

Install VirtualBox on Ubuntu 20.04. Also learn the commands to install VirtualBox extension pack on Ubuntu Linux. VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use.

VirtualBox can run a “guest” operating system in a window of the host operating system without giving it direct access to your computer’s hardware. (Instead, Virtualbox passes hardware-related instructions through the “host” operating system’s drivers.) VirtualBox can run all versions of Windows, Linux, and many other x86- and AMD/Intel-based 32- and 64-bit operating systems as either a host OS or as a guest OS.

Oracle VM VirtualBox is useful in the following scenarios:

Install VirtualBox from Oracle Repository

Run the following set of commands to install VirtualBox from Oracle Repository:


sudo sh -c 'echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list'

NOTE: Add the following line to your /etc/apt/sources.list. According to your distribution, replace ” with ‘eoan’, ‘bionic’, ‘xenial’, ‘buster’, ‘stretch’, or ‘jessie’ (older versions of VirtualBox supported different distributions):


sudo apt update
sudo apt upgrade
sudo wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
sudo wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt update
sudo apt install virtualbox-6.1
sudo wget https://download.virtualbox.org/virtualbox/6.1.8/Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack

NOTE:

1. Use lsb_release -cs command to get the Ubuntu codename. For example, if you have Ubuntu version 20.04 the command will print focal.
2. During the installation of VBoxManage extpack, you will be presented with the Oracle license and prompted to accept their terms and conditions. “Do you agree to these license terms and conditions (y/n)?” You will have to type y and hit Enter to proceed the installation.

If you are experiencing The following signatures were invalid: BADSIG … when refreshing the packages from the repository? Run:

# sudo -s -H
# apt-get clean
# rm /var/lib/apt/lists/*
# rm /var/lib/apt/lists/partial/*
# apt-get clean
# apt-get update

Once installed, VirtualBox can be launched from the command line by typing virtualbox or using Ubuntu menu.

How To Install VirtualBox On Linux Ubuntu 20.04 originally posted on Source Digit – Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos.

FacebookTwitterTumblrRedditLinkedInHacker NewsDiggBufferGoogle ClassroomThreadsXINGShare
Exit mobile version