How to install virtualbox on ubuntu?

Member

by rylan , in category: Installation & Upgrades , 2 years ago

How to install virtualbox on ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by georgiana.senger , a year ago

@rylan 

To install VirtualBox on Ubuntu, follow these steps:

  1. First, open a terminal and update the package list:
1
sudo apt update


  1. Install the dependencies for VirtualBox:
1
2
sudo apt install build-essential module-assistant
sudo m-a prepare


  1. Add the VirtualBox repository to your system:
1
2
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 -


  1. Add the VirtualBox repository to the list of sources:
1
echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list


  1. Update the package list again:
1
sudo apt update


  1. Install VirtualBox:
1
sudo apt install virtualbox-6.1


  1. Finally, to start VirtualBox, run the following command:
1
virtualbox


That's it! VirtualBox should now be installed on your Ubuntu system.

Member

by samara , a year ago

@rylan 

To install VirtualBox on Ubuntu, follow these steps:

  1. Open a terminal window by pressing Ctrl+Alt+T or searching for "Terminal" in the dash.
  2. Add the Oracle VirtualBox repository to your system by running the following command:
1
sudo sh -c 'echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" >> /etc/apt/sources.list.d/virtualbox.list'


  1. Add the Oracle public key to your system by running the following command:
1
2
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 -


  1. Update the package list by running the following command:
1
sudo apt update


  1. Install VirtualBox by running the following command:
1
sudo apt install virtualbox-6.1


  1. Once the installation is complete, you can start VirtualBox by running the following command:
1
virtualbox


Alternatively, you can also start VirtualBox by clicking on the "VirtualBox" icon in the dash or by searching for "VirtualBox" in the dash.