Pages

Showing posts with label virtualbox. Show all posts
Showing posts with label virtualbox. Show all posts

Install Virtualbox in Ubuntu: command line method

This method can be follow to install Virtualbox in any version of Ubuntu operating system.

Make the system upto date. Apply the command one bye one.

sudo apt update
sudo apt upgrade

Install the latest Linux kernel headers.

sudo apt-get -y install gcc make linux-headers-$(uname -r) dkms

Install the VirtualBox packages from repository.

sudo apt install virtualbox virtualbox-ext-pack

Install VirtualBox 7 on Debian 12 (Bookworm)

Debian 12 recently rolled out, and many dependencies for the installation of VirtualBox must borrow from the previous version of Debian. We need to add the Debian 11 repository first.

Add the Debian 11 repository.

echo 'deb http://ftp.de.debian.org/debian bullseye main ' | sudo tee /etc/apt/sources.list.d/debian11.list

sudo apt update

Visit the following URL and download the .deb suitable for Debian,

https://www.virtualbox.org/wiki/Linux_Downloads

Apply the following command to install the VirtualBox Debian package. I assume that the VirtualBox .deb file in the Download folder,

cd Downloads

sudo dpkg -i virtualbox*

Find the VirtualBox in the application launcher.