Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Virtualization»How to Install Oracle VirtualBox 6.0 on Debian 9 (Stretch)

    How to Install Oracle VirtualBox 6.0 on Debian 9 (Stretch)

    By RahulApril 9, 20192 Mins Read

    The VirtualBox is the most used Virtualization platform by the users. It is free and opensource hypervisor for x86 computers. You can easily install VirtualBox on a Debian Linux system with simple steps.

    Advertisement

    This article helps you to install VirtualBox on Debian 9 (Stretch) Linux machine.

    Step 1 – Prerequsities

    Login to your Debian server with root or sudo privileged user and update current packages of your system to the latest version.

    sudo apt-get update
    sudo apt-get upgrade
    

    Step 2 – Add VirtualBox PPA

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

    echo "deb http://download.virtualbox.org/virtualbox/debian stretch contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
    

    This command will create a file and make entry to /etc/apt/sources.list.d/virtualbox.list.

    Step 3 – Import Sign Key

    After adding the required apt repository on your system, download and import the Oracle public key for apt-secure using 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 -
    

    Step 4 – Install VirtualBox on Debian

    You are ready now to install VirtualBox on a Debian system. Run the following commands on the terminal to complete the VirtualBox installation on a Debian system.

    sudo apt-get update
    sudo apt-get install virtualbox-6.0
    

    Step 5 – Launch VirtualBox

    We can use launcher link on your Desktop system to start VirtualBox or simply use command from a terminal.

    virtualbox
    

    Install Virtualbox on Debian 9

    Oracle VirtualBox vm
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Install VirtualBox on macOS

    How to Install VirtualBox on MacOS

    How to Install VirtualBox on Ubuntu 22.04

    How to Install VirtualBox 7.0 on Ubuntu 22.04

    How to Install VirtualBox on Debian 11

    How To Install VirtualBox 7.0 on Debian 11

    View 14 Comments

    14 Comments

    1. jimmy on October 31, 2019 4:17 pm

      como solucionar esto, muchas gracias.

      [email protected]:~# sudo apt-get install virtualbox-6.0
      Leyendo lista de paquetes… Hecho
      Creando árbol de dependencias
      Leyendo la información de estado… Hecho
      No se pudieron instalar algunos paquetes. Esto puede significar que
      usted pidió una situación imposible o, si está usando la distribución
      inestable, que algunos paquetes necesarios aún no se han creado o se
      han sacado de «Incoming».
      La siguiente información puede ayudar a resolver la situación:

      Los siguientes paquetes tienen dependencias incumplidas:
      virtualbox-6.0 : Depende: libcurl3 (>= 7.16.2) pero no es instalable
      Depende: libvpx4 (>= 1.6.0) pero no es instalable
      Recomienda: libsdl-ttf2.0-0 pero no va a instalarse
      Recomienda: linux-image pero no es instalable
      E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.

      Reply
    2. Prakash on August 4, 2019 11:48 pm

      I always get this message, when I use sudo apt-get install virtualbox-6.0

      E: Unable to locate package virtualbox-6.0
      E: Couldn’t find any package by glob ‘virtualbox-6.0’
      E: Couldn’t find any package by regex ‘virtualbox-6.0’

      Reply
      • Iurie Muradu on October 7, 2019 11:34 am

        Rae using Debian 10? If so, install Debian9

        Reply
    3. Paulo on July 18, 2019 3:59 pm

      Gracias!!!!!!!!!!!!!!!

      Reply
    4. aaron on June 18, 2019 1:36 am

      thank you!

      Reply
    5. Root on June 6, 2019 6:34 pm

      You should NEVER install Ubuntu PPA on a Debian machine, this is a horrible advice.

      Reply
      • kaze on October 25, 2019 9:15 pm

        Check again:

        deb http://download.virtualbox.org/virtualbox/debian >>stretch<< contrib

        This is not an Ubuntu PPA, but a Debian one.

        Also, on this page, Ubuntu and Debian are listed separately:

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

        Reply
    6. Alejandro Otalvaro V on May 16, 2019 9:08 pm

      HI Rahul, I tried witt your recommendations and appear this trouble
      vboxdrv.sh: failed: modprobe vboxdrv failed. Please use ‘dmesg’ to find out why.

      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.

      May you help me?,thanks for everything

      Reply
    7. Leandro Ramos on April 23, 2019 12:59 pm

      Thank you very much, Rahul 🙂

      Reply
    8. Pablo Minervino on April 8, 2019 2:29 pm

      Thank you man, you are a lifesaver!

      Reply
    9. Leandro Ramos on April 7, 2019 1:51 am

      Thanks for this tutorial, it helped me a lot.
      I would like to suggest you to create a virtualbox.list file instead of changing the sources.list, like this:

      echo “deb http://download.virtualbox.org/virtualbox/debian stretch contrib” | sudo tee /etc/apt/sources.list.d/virtualbox.list

      It’s a way to keep sources.list with just Debian repositories.

      Thank you.

      Reply
      • Rahul on April 9, 2019 7:56 am

        Hi Leandro, Thanks for your suggestion and I agree with you. So updated tutorial accordingly.

        Reply
        • AFRIZAL on September 23, 2019 12:45 am

          Rahull…do you have package installer & configuration of debian 9 (format file is .VDI)??, if you have to..could you give me that file..???please..

          Reply
    10. Gustavo on February 16, 2019 6:06 am

      Thank you very mucho, you made my life easier and thanks to you I decided to give a second opportunity (which I’m already liking it a lot)

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Split Command in Linux With Examples (Split Large Files)
    • Test Your Internet Speed from the Linux Terminal
    • 11 Practical Example of cat Command in Linux
    • sleep Command in Linux with Examples
    • 20 Basic Linux Commands for the Beginners (Recommended)
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.