• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How To Install VirtualBox 6.1 on Ubuntu 18.04 LTS

Written by Rahul, Updated on June 27, 2020

Oracle VirtualBox 6.1.10 has been released on June 05, 2020. Oracle VirtualBox 6.1 is the latest major release after launched by Oracle team. You can read the ChangeLog to know more about changes in newer version’s of VirtualBox. This tutorial will help you to install VirtualBox on Ubuntu 18.04 LTS Bionic Beaver Linux systems.

Step 1 – Prerequisites

Login to your Ubuntu 18.04 desktop system with sudo privileged user. After login to your system update current packages of the system to the latest version.

sudo apt update
sudo apt upgrade

Step 2 – Setup Apt Repository

Now, import the Oracle public key to your system signed the Debian packages using the following commands.

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 -

Then, you need to add Oracle VirtualBox PPA to Ubuntu system. You can do this by running the below command on your system.

sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian bionic contrib"

This command will add an entry to /etc/apt/sources.list at end of the file.

Step 3 – Install VirtualBox on Ubuntu 18.04

After completing the above steps, let’s install VirtualBox using the following commands. If you have already installed an older version of VirtualBox, Below command will update it automatically.

sudo apt update
sudo apt install virtualbox-6.1

Step 4 – Launch VirtualBox

We can use dashboard shortcuts to start VirtualBox or simply run following command from a terminal.

virtualbox

Install Virtualbox on Ubuntu 18.04

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

28 Comments

  1. Avatar ksingh Reply
    December 29, 2020 at 8:26 am

    not working on 18.04:

    at the end of the installation throws following messages:

    This system is currently not set up to build kernel modules.
    Please install the Linux kernel “header” files matching the current kernel
    for adding new hardware support to the system.
    This system is currently not set up to build kernel modules.
    Please install the Linux kernel “header” files matching the current kernel
    for adding new hardware support to the system.

    There were problems setting up VirtualBox. To re-start the set-up process, run
    /sbin/vboxconfig
    as root. If your system is using EFI Secure Boot you may need to sign the
    kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
    them. Please see your Linux system’s documentation for more information.

  2. Avatar Rodney Jackson Reply
    August 6, 2020 at 10:49 am

    all went well until the end. ERROR: The following packages have unmet dependencies:
    virtualbox-6.1 : Conflicts: virtualbox
    Conflicts: virtualbox-qt but 5.2.42-dfsg-0~ubuntu1.18.04.1 is to be installed

    E: Unable to correct problems, you have held broken packages.

    Could you give step by step help to fix this please, I am rather new at ubuntu.
    Thank you.
    Rod.

  3. Avatar rafli Reply
    February 1, 2020 at 3:14 am

    this is very helpful, thank you

  4. Avatar sarmad Reply
    December 22, 2019 at 8:30 pm

    Love you man

  5. Avatar Marco Reply
    October 2, 2019 at 8:52 am

    Thanks! This really helped me!

  6. Avatar Mitch Anderson Reply
    September 25, 2019 at 2:55 am

    Perfect! Thanks man!

  7. Avatar Brian Reply
    September 9, 2019 at 3:23 am

    thanks for help!

  8. Avatar danielRamos Reply
    August 26, 2019 at 12:52 pm

    very good…. thanks for help.

  9. Avatar Anxuiesbe Reply
    August 19, 2019 at 4:31 am

    Nice job

  10. Avatar Man Reply
    August 19, 2019 at 4:30 am

    good

  11. Avatar Shiva Reply
    August 5, 2019 at 4:14 am

    Reading package lists… Done
    E: The repository ‘cdrom://Ubuntu 18.04.2 LTS _Bionic Beaver_ – Release amd64 (20190210) bionic Release’ does not have a Release file.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    N: Skipping acquire of configured file ‘contrib/binary-i386/Packages’ as repository ‘http://download.virtualbox.org/virtualbox/debian bionic InRelease’ doesn’t support architecture ‘i386’

    its telling that the page is not available now

    • Avatar Arulraj Reply
      September 25, 2019 at 12:35 am

      As per Ray Yu comment

      deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian bionic contrib

  12. Avatar Neila Reply
    August 1, 2019 at 4:24 am

    Thanks!

  13. Avatar Ricardo Reply
    July 17, 2019 at 10:17 pm

    Thanks; installation worked out great now I will attempt to install an OS.

  14. Avatar Raj Reply
    July 6, 2019 at 4:51 am

    Thanks for your effort.

  15. Avatar carlos Reply
    June 26, 2019 at 1:44 pm

    thanks bro..

  16. Avatar Miguel Reply
    June 19, 2019 at 8:54 am

    If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system’s documentation for more information.

  17. Avatar Tu Tran Reply
    June 17, 2019 at 8:29 am

    Very nice.. It’s worked for me. Many thanks!

  18. Avatar Tuhin Alam Reply
    May 30, 2019 at 8:09 pm

    can i upgrade 19.04

  19. Avatar Ray Hu Reply
    May 23, 2019 at 4:45 pm

    Run into warnings:
    N: Skipping acquire of configured file ‘contrib/binary-i386/Packages’ as repository ‘http://download.virtualbox.org/virtualbox/debian bionic InRelease’ doesn’t support architecture ‘i386’

    Modified the source line a bit to avoid it:

    deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian bionic contrib

    This line limits the architecture to amd64, so it won’t pull i386.

  20. Avatar Saurabh Reply
    May 14, 2019 at 2:31 pm

    my error after following the instructions

    /usr/lib/virtualbox/VirtualBox: error while loading shared libraries: libdouble-conversion.so.1: cannot open shared object file: No such file or directory

  21. Avatar Surfer Reply
    May 1, 2019 at 8:20 pm

    Sweat … nicely done!

  22. Avatar Vimal Reply
    April 28, 2019 at 8:09 am

    A very helpful article. Thank you.

  23. Avatar JULIANO Reply
    April 22, 2019 at 9:41 pm

    gracie, perfect!!!

  24. Avatar Massimiliano Ceretti Reply
    April 21, 2019 at 7:57 am

    sostituisci: “bionic” con “disco”

  25. Avatar Michael Reply
    April 15, 2019 at 10:13 am

    This doesn’t work on Ubuntu 19.04

    • Avatar Partha Basak Reply
      April 28, 2019 at 6:10 pm

      What issues you are facing?

  26. Avatar Really Reply
    April 4, 2019 at 1:39 am

    Lockdown: Loading of unsigned modules is restricted; see man kernel_lockdown.7

Leave a Reply Cancel reply

Popular Posts

  • How To Install Python 3.9 on Ubuntu 20.04 5
  • How To Install Python 3.9 on Ubuntu 18.04 0
  • How to Use AppImage on Linux (Beginner Guide) 2
  • How to Install Python 3.9 on CentOS/RHEL 7 & Fedora 32/31 0
  • How To Install VNC Server on Ubuntu 20.04 1
© 2013-2020 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy