{"id":7759,"date":"2021-01-23T11:05:36","date_gmt":"2021-01-23T08:05:36","guid":{"rendered":"https:\/\/kifarunix.com\/?p=7759"},"modified":"2024-03-19T20:43:10","modified_gmt":"2024-03-19T17:43:10","slug":"install-latest-virtualbox-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-latest-virtualbox-on-ubuntu-20-04\/","title":{"rendered":"Install Latest VirtualBox on Ubuntu 20.04"},"content":{"rendered":"\n

In this tutorial, you will learn how to install latest VirtualBox on Ubuntu 20.04. As of this writing, VirtualBox 6.1 is the current major release with version 6.1.18 being the current maintenance release.<\/p>\n\n\n\n

As of the release of this major upgrade, quite a number of improvements and fixes were put in place. To see a complete list of improvements and fixes, please refer to VirtualBox changelog page, link provided below.<\/p>\n\n\n\n

Changelog – Oracle VM VirtualBox<\/a><\/p>\n\n\n\n

Installing VirtualBox on Ubuntu 20.04<\/h2>\n\n\n\n

Remove Old Versions of VirtualBox<\/h3>\n\n\n\n

To begin with, kill any VirtualBox process that is running;<\/p>\n\n\n\n

ps aux | grep -i virtualbox | grep -v grep | awk '{print$2}' | xargs -I {} sudo kill -9 {}<\/code><\/pre>\n\n\n\n

Next, remove any package related to the VirtualBox 6.0 on your system along with packages that are no longer required.<\/p>\n\n\n\n

Note<\/strong>: When you remove VirtualBox, you existing VMs will remain intact under the installation directory, in my case, it is $HOME\/VirtualBox VMs<\/code> directory.<\/p>\n\n\n\n

sudo apt remove --purge --auto-remove virtualbox<\/code><\/pre>\n\n\n\n

Reboot your system to reload the kernel modules.<\/p>\n\n\n\n

systemctl reboot<\/code><\/pre>\n\n\n\n

Installing VirtualBox on Ubuntu 20.04<\/h3>\n\n\n\n

You can install VirtualBox either using the DEB binary package or from the APT repos.<\/p>\n\n\n\n

    \n
  1. From Official VirtualBox repos<\/a><\/li>\n\n\n\n
  2. Using .DEB binary package<\/a><\/li>\n<\/ol>\n\n\n\n

    Run System Update<\/h4>\n\n\n\n

    Update your system package cache;<\/p>\n\n\n\n

    apt update -y<\/code><\/pre>\n\n\n\n

    As of this writing, the latest maintenance release version of VirtualBox is VirtualBox 6.1.18.<\/p>\n\n\n\n

    Install VirtualBox on Ubuntu from APT Repos<\/h4>\n\n\n\n

    To install VirtualBox from APT repos, simply install the VirtualBox APT sources list.<\/p>\n\n\n\n

    echo \"deb [arch=amd64] https:\/\/download.virtualbox.org\/virtualbox\/debian $(lsb_release -sc) contrib\" | sudo tee \/etc\/apt\/sources.list.d\/virtualbox.list<\/code><\/pre>\n\n\n\n

    Install the repository signing keys.<\/p>\n\n\n\n

    wget -q https:\/\/www.virtualbox.org\/download\/oracle_vbox_2016.asc -O- | sudo apt-key add -<\/code><\/pre>\n\n\n\n
    wget -q https:\/\/www.virtualbox.org\/download\/oracle_vbox.asc -O- | sudo apt-key add -<\/code><\/pre>\n\n\n\n

    Update system package cache<\/p>\n\n\n\n

    sudo apt update<\/code><\/pre>\n\n\n\n

    NOTE<\/strong>: As of this writing, as much as the APT repos provides the current latest and stable release version of VirtualBox (Version: 6.1.16-dfsg-6~ubuntu1.20.04.1), it do not provide the latest maintenance release version, 6.1.18.<\/p>\n\n\n\n

    sudo apt install virtualbox-6.1<\/code><\/pre>\n\n\n\n

    To install VIrtualBox 6.1.18 or later based on the current maintenance releases, follow the method below;<\/p>\n\n\n\n

    Install VirtualBox 6.1 using DEB Binary Package<\/h4>\n\n\n\n

    To install latest VirtualBox using the .DEB binary package, simply download the LATEST<\/strong> binary from VirtualBox downloads page<\/a>.<\/p>\n\n\n\n

    wget https:\/\/download.virtualbox.org\/virtualbox\/6.1.18\/virtualbox-6.1_6.1.18-142142~Ubuntu~eoan_amd64.deb<\/code><\/pre>\n\n\n\n

    Use either the dpkg tool or apt package manager to install VirtualBox<\/p>\n\n\n\n

    dpkg -i virtualbox-6.1_6.1.18-142142~Ubuntu~eoan_amd64.deb\napt install -f<\/code><\/pre>\n\n\n\n

    or if you want to deal with the dependencies automatically;<\/p>\n\n\n\n

    apt install .\/virtualbox-6.1_6.1.18-142142~Ubuntu~eoan_amd64.deb<\/code><\/pre>\n\n\n\n

    Install latest VirtualBox Extension Pack<\/h3>\n\n\n\n

    Remove the old version of VirtualBox extension pack.<\/p>\n\n\n\n

    sudo VBoxManage extpack uninstall \"Oracle VM VirtualBox Extension Pack\"<\/code><\/pre>\n\n\n\n

    Download the latest VirtualBox 6.1 extension pack that matches the version of the installed virtualbox. You can get the link from the VirtualBox download page<\/a>.<\/p>\n\n\n\n

    wget -P \/tmp https:\/\/download.virtualbox.org\/virtualbox\/6.1.18\/Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack<\/code><\/pre>\n\n\n\n

    Install VirtualBox 6.1 Extension Pack<\/p>\n\n\n\n

    sudo VBoxManage extpack install \/tmp\/Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack<\/code><\/pre>\n\n\n\n

    Accept the VirtualBox Extension Pack Personal Use and Evaluation License (PUEL) and proceed with installation.<\/p>\n\n\n\n

    Running VirtualBox<\/h3>\n\n\n\n

    Add your username to virtualbox group;<\/p>\n\n\n\n

    usermod -aG vboxusers <username><\/code><\/pre>\n\n\n\n

    Replace <username> with your username.<\/p>\n\n\n\n

    You can then luanch VirtualBox from the applications menu or directly from the command line;<\/p>\n\n\n\n

    virtualbox<\/code><\/pre>\n\n\n\n
    \"\"<\/figure>\n\n\n\n

    And there you go.<\/p>\n\n\n\n

    Other Tutorials<\/h3>\n\n\n\n

    Install VirtualBox 6.1 on Fedora 33<\/a><\/p>\n\n\n\n

    List Running and Stopped VMS on KVM<\/a><\/p>\n\n\n\n

    How to Clone KVM Virtual Machines<\/a><\/p>\n\n\n\n

    Upgrade VirtualBox 6.0 to 6.1 on Ubuntu Systems<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

    In this tutorial, you will learn how to install latest VirtualBox on Ubuntu 20.04. As of this writing, VirtualBox 6.1 is the current major release<\/p>\n","protected":false},"author":1,"featured_media":7761,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[46,121,36],"tags":[3057,3060,1200,3058,1233,3059],"class_list":["post-7759","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-virtualbox","category-howtos","category-virtualization","tag-install-latest-virtualbox-on-ubuntu","tag-install-virtualbox-6-1-ubuntu-20-04","tag-ubuntu-20-04","tag-ubuntu-latest-virtualbox","tag-virtualbox-6-1","tag-virtualbox-6-1-ubuntu-20-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7759"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=7759"}],"version-history":[{"count":2,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7759\/revisions"}],"predecessor-version":[{"id":21957,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7759\/revisions\/21957"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/7761"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=7759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=7759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=7759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}