Can't install VirtualBox on Debian 9

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-2
down vote

favorite












Hi' I want to install some VM on my Debian but the install fails I tried with two .deb (my pc is x64 so I tried to install first the amd64 version)




  • virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb

  • virtualbox-5.2_5.2.0-118431-Debian-stretch_i386.deb

output:



~/Downloads$ sudo dpkg -i virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb
(Reading database ... 359023 files and directories currently installed.)
Preparing to unpack virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb ...
Unpacking virtualbox-5.2 (5.2.0-118431~Debian~stretch) over (5.2.0-118431~Debian~stretch) ...
dpkg: dependency problems prevent configuration of virtualbox-5.2:
virtualbox-5.2 depends on libqt5core5a (>= 5.7.0).
virtualbox-5.2 depends on libqt5gui5 (>= 5.4.0).
virtualbox-5.2 depends on libqt5opengl5 (>= 5.0.2).
virtualbox-5.2 depends on libqt5printsupport5 (>= 5.0.2).
virtualbox-5.2 depends on libqt5widgets5 (>= 5.7.0).
virtualbox-5.2 depends on libqt5x11extras5 (>= 5.6.0).

dpkg: error processing package virtualbox-5.2 (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Processing triggers for shared-mime-info (1.8-1) ...
Errors were encountered while processing:
virtualbox-5.2


Can anyone help me?







share|improve this question
















  • 1




    wiki.debian.org/VirtualBox
    – sebasth
    Nov 6 '17 at 19:38














up vote
-2
down vote

favorite












Hi' I want to install some VM on my Debian but the install fails I tried with two .deb (my pc is x64 so I tried to install first the amd64 version)




  • virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb

  • virtualbox-5.2_5.2.0-118431-Debian-stretch_i386.deb

output:



~/Downloads$ sudo dpkg -i virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb
(Reading database ... 359023 files and directories currently installed.)
Preparing to unpack virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb ...
Unpacking virtualbox-5.2 (5.2.0-118431~Debian~stretch) over (5.2.0-118431~Debian~stretch) ...
dpkg: dependency problems prevent configuration of virtualbox-5.2:
virtualbox-5.2 depends on libqt5core5a (>= 5.7.0).
virtualbox-5.2 depends on libqt5gui5 (>= 5.4.0).
virtualbox-5.2 depends on libqt5opengl5 (>= 5.0.2).
virtualbox-5.2 depends on libqt5printsupport5 (>= 5.0.2).
virtualbox-5.2 depends on libqt5widgets5 (>= 5.7.0).
virtualbox-5.2 depends on libqt5x11extras5 (>= 5.6.0).

dpkg: error processing package virtualbox-5.2 (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Processing triggers for shared-mime-info (1.8-1) ...
Errors were encountered while processing:
virtualbox-5.2


Can anyone help me?







share|improve this question
















  • 1




    wiki.debian.org/VirtualBox
    – sebasth
    Nov 6 '17 at 19:38












up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











Hi' I want to install some VM on my Debian but the install fails I tried with two .deb (my pc is x64 so I tried to install first the amd64 version)




  • virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb

  • virtualbox-5.2_5.2.0-118431-Debian-stretch_i386.deb

output:



~/Downloads$ sudo dpkg -i virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb
(Reading database ... 359023 files and directories currently installed.)
Preparing to unpack virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb ...
Unpacking virtualbox-5.2 (5.2.0-118431~Debian~stretch) over (5.2.0-118431~Debian~stretch) ...
dpkg: dependency problems prevent configuration of virtualbox-5.2:
virtualbox-5.2 depends on libqt5core5a (>= 5.7.0).
virtualbox-5.2 depends on libqt5gui5 (>= 5.4.0).
virtualbox-5.2 depends on libqt5opengl5 (>= 5.0.2).
virtualbox-5.2 depends on libqt5printsupport5 (>= 5.0.2).
virtualbox-5.2 depends on libqt5widgets5 (>= 5.7.0).
virtualbox-5.2 depends on libqt5x11extras5 (>= 5.6.0).

dpkg: error processing package virtualbox-5.2 (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Processing triggers for shared-mime-info (1.8-1) ...
Errors were encountered while processing:
virtualbox-5.2


Can anyone help me?







share|improve this question












Hi' I want to install some VM on my Debian but the install fails I tried with two .deb (my pc is x64 so I tried to install first the amd64 version)




  • virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb

  • virtualbox-5.2_5.2.0-118431-Debian-stretch_i386.deb

output:



~/Downloads$ sudo dpkg -i virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb
(Reading database ... 359023 files and directories currently installed.)
Preparing to unpack virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb ...
Unpacking virtualbox-5.2 (5.2.0-118431~Debian~stretch) over (5.2.0-118431~Debian~stretch) ...
dpkg: dependency problems prevent configuration of virtualbox-5.2:
virtualbox-5.2 depends on libqt5core5a (>= 5.7.0).
virtualbox-5.2 depends on libqt5gui5 (>= 5.4.0).
virtualbox-5.2 depends on libqt5opengl5 (>= 5.0.2).
virtualbox-5.2 depends on libqt5printsupport5 (>= 5.0.2).
virtualbox-5.2 depends on libqt5widgets5 (>= 5.7.0).
virtualbox-5.2 depends on libqt5x11extras5 (>= 5.6.0).

dpkg: error processing package virtualbox-5.2 (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Processing triggers for shared-mime-info (1.8-1) ...
Errors were encountered while processing:
virtualbox-5.2


Can anyone help me?









share|improve this question











share|improve this question




share|improve this question










asked Nov 6 '17 at 18:29









OsmaK

62




62







  • 1




    wiki.debian.org/VirtualBox
    – sebasth
    Nov 6 '17 at 19:38












  • 1




    wiki.debian.org/VirtualBox
    – sebasth
    Nov 6 '17 at 19:38







1




1




wiki.debian.org/VirtualBox
– sebasth
Nov 6 '17 at 19:38




wiki.debian.org/VirtualBox
– sebasth
Nov 6 '17 at 19:38










2 Answers
2






active

oldest

votes

















up vote
6
down vote













To install virtualbox , run the following commands:



nano /etc/apt/sources.list.d/virtualbox.list


add the following line:



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


Then:



curl -O https://www.virtualbox.org/download/oracle_vbox_2016.asc
apt-key add oracle_vbox_2016.asc
apt update
apt install virtualbox-5.1


Debian docs






share|improve this answer


















  • 3




    Yes. This is also the "official" way to do it: wiki.debian.org/VirtualBox#Debian_9_.22Stretch.22
    – maulinglawns
    Nov 6 '17 at 18:35


















up vote
1
down vote













You are having dependency issue. Run



# apt install -f


To fix dependencies



Or use apt directly



# apt install ./virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb


Which will fix dependency issues too.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f402893%2fcant-install-virtualbox-on-debian-9%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    6
    down vote













    To install virtualbox , run the following commands:



    nano /etc/apt/sources.list.d/virtualbox.list


    add the following line:



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


    Then:



    curl -O https://www.virtualbox.org/download/oracle_vbox_2016.asc
    apt-key add oracle_vbox_2016.asc
    apt update
    apt install virtualbox-5.1


    Debian docs






    share|improve this answer


















    • 3




      Yes. This is also the "official" way to do it: wiki.debian.org/VirtualBox#Debian_9_.22Stretch.22
      – maulinglawns
      Nov 6 '17 at 18:35















    up vote
    6
    down vote













    To install virtualbox , run the following commands:



    nano /etc/apt/sources.list.d/virtualbox.list


    add the following line:



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


    Then:



    curl -O https://www.virtualbox.org/download/oracle_vbox_2016.asc
    apt-key add oracle_vbox_2016.asc
    apt update
    apt install virtualbox-5.1


    Debian docs






    share|improve this answer


















    • 3




      Yes. This is also the "official" way to do it: wiki.debian.org/VirtualBox#Debian_9_.22Stretch.22
      – maulinglawns
      Nov 6 '17 at 18:35













    up vote
    6
    down vote










    up vote
    6
    down vote









    To install virtualbox , run the following commands:



    nano /etc/apt/sources.list.d/virtualbox.list


    add the following line:



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


    Then:



    curl -O https://www.virtualbox.org/download/oracle_vbox_2016.asc
    apt-key add oracle_vbox_2016.asc
    apt update
    apt install virtualbox-5.1


    Debian docs






    share|improve this answer














    To install virtualbox , run the following commands:



    nano /etc/apt/sources.list.d/virtualbox.list


    add the following line:



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


    Then:



    curl -O https://www.virtualbox.org/download/oracle_vbox_2016.asc
    apt-key add oracle_vbox_2016.asc
    apt update
    apt install virtualbox-5.1


    Debian docs







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 6 '17 at 18:37

























    answered Nov 6 '17 at 18:34









    GAD3R

    22.7k154895




    22.7k154895







    • 3




      Yes. This is also the "official" way to do it: wiki.debian.org/VirtualBox#Debian_9_.22Stretch.22
      – maulinglawns
      Nov 6 '17 at 18:35













    • 3




      Yes. This is also the "official" way to do it: wiki.debian.org/VirtualBox#Debian_9_.22Stretch.22
      – maulinglawns
      Nov 6 '17 at 18:35








    3




    3




    Yes. This is also the "official" way to do it: wiki.debian.org/VirtualBox#Debian_9_.22Stretch.22
    – maulinglawns
    Nov 6 '17 at 18:35





    Yes. This is also the "official" way to do it: wiki.debian.org/VirtualBox#Debian_9_.22Stretch.22
    – maulinglawns
    Nov 6 '17 at 18:35













    up vote
    1
    down vote













    You are having dependency issue. Run



    # apt install -f


    To fix dependencies



    Or use apt directly



    # apt install ./virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb


    Which will fix dependency issues too.






    share|improve this answer
























      up vote
      1
      down vote













      You are having dependency issue. Run



      # apt install -f


      To fix dependencies



      Or use apt directly



      # apt install ./virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb


      Which will fix dependency issues too.






      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        You are having dependency issue. Run



        # apt install -f


        To fix dependencies



        Or use apt directly



        # apt install ./virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb


        Which will fix dependency issues too.






        share|improve this answer












        You are having dependency issue. Run



        # apt install -f


        To fix dependencies



        Or use apt directly



        # apt install ./virtualbox-5.2_5.2.0-118431-Debian-stretch_amd64.deb


        Which will fix dependency issues too.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 6 '17 at 18:34









        Jajo

        112




        112



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f402893%2fcant-install-virtualbox-on-debian-9%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)