Page 1 of 1

Trouble getting VirtualBox installed on Debian 8

Posted: 16. Mar 2017, 14:32
by forunner
I have been following the steps here virtual boxes website (cant post link cause its my first post), and have encountered a couple problems.

When running: sudo apt-get install virtualbox-5.1
I ran apt-get update and apt-get update install -f

Code: Select all

root@debian:/etc# sudo apt-get install virtualbox-5.1
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
 
The following packages have unmet dependencies:
 virtualbox-5.1 : Depends: libdevmapper1.02.1 (>= 2:1.02.97) but 2:1.02.90-2.2+deb8u1 is to be installed
                  Depends: libqt5core5a (>= 5.5.0) but 5.3.2+dfsg-4+deb8u2 is to be installed
                  Depends: libstdc++6 (>= 5.2) but 4.9.2-10 is to be installed
                  Depends: libvpx3 (>= 1.5.0) but it is not installable
                  Recommends: libsdl-ttf2.0-0 but it is not going to be installed
                  Recommends: linux-headers-generic but it is not installable or
                              linux-headers-generic-pae but it is not installable or
                              linux-headers-686-pae but it is not installable or
                              linux-headers-amd64 but it is not going to be installed or
                              linux-headers-2.6-686 but it is not installable or
                              linux-headers-2.6-amd64 but it is not installable or
                              linux-headers but it is not installable
                  Recommends: linux-image but it is not installable
                  Recommends: gcc but it is not going to be installed
                  Recommends: make or
                              build-essential but it is not going to be installed or
                              dpkg-dev but it is not going to be installed
                  Recommends: binutils but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The first dependency

Code: Select all

libdevmapper1.02.1
I downloaded but am not sure what todo with it. I assume I need to put it in a specific directory, but where? The console is not telling me any directories. Does this mean I have to download each of these dependencies separately? What are my options here?

The other problem is not as complex, but I still can't figure it out. I cant open the VirtualBox Extension pack. The default program for opening archives does not support it. I did alot of research and could not find a way to open it. It's 5:29AM here and I've stayed up all night trying to figure this out.

Any advice is appreciated, thanks.

Re: Trouble getting VirtualBox installed on Debian 8

Posted: 16. Mar 2017, 19:20
by frank
Did you use the wrong repository? Checking the dependencies of the Jessie package I get:

Code: Select all

$ dpkg -I virtualbox-5.1_5.1.18-114002~Debian~jessie_amd64.deb 
 new debian package, version 2.0.
 size 65293496 bytes: control archive=22375 bytes.
    1665 bytes,    20 lines      control              
   61575 bytes,   671 lines      md5sums              
    3349 bytes,    98 lines   *  postinst             #!/bin/sh
    1767 bytes,    49 lines   *  postrm               #!/bin/sh
    2347 bytes,    66 lines   *  preinst              #!/bin/bash
    1596 bytes,    55 lines   *  prerm                #!/bin/sh
    2531 bytes,    55 lines      templates            
 Package: virtualbox-5.1
 Version: 5.1.18-114002~Debian~jessie
 Architecture: amd64
 Maintainer: Oracle Corporation <info@virtualbox.org>
 Installed-Size: 149758
 Pre-Depends: debconf (>= 1.1) | debconf-2.0
 Depends: libc6 (>= 2.15), libcurl3-gnutls (>= 7.16.2), libdevmapper1.02.1 (>= 2:1.02.90), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libpng12-0 (>= 1.2.13-4), libpython2.7 (>= 2.7), libqt5core5a (>= 5.3.0), libqt5gui5 (>= 5.3.0), libqt5opengl5 (>= 5.0.2), libqt5printsupport5 (>= 5.0.2), libqt5widgets5 (>= 5.2.0), libqt5x11extras5 (>= 5.1.0), libsdl1.2debian (>= 1.2.11), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.9), libvpx1 (>= 1.0.0), libx11-6, libxcb1, libxcursor1 (>> 1.1.2), libxext6, libxinerama1, libxml2 (>= 2.7.4), libxmu6, libxt6, zlib1g (>= 1:1.1.4), psmisc, adduser
 Recommends: libasound2, libpulse0, libsdl-ttf2.0-0, kmod | kldutils | module-init-tools, linux-headers-generic | linux-headers-generic-pae | linux-headers-686-pae | linux-headers-amd64 | linux-headers-2.6-686 | linux-headers-2.6-amd64 | linux-headers, linux-image, gcc, make | build-essential | dpkg-dev, binutils, pdf-viewer, libgl1
 Conflicts: virtualbox, virtualbox-guest-additions-iso, virtualbox-ose
 Replaces: virtualbox
 Provides: virtualbox
 Section: contrib/misc
 Priority: optional
 Description: Oracle VM VirtualBox
  VirtualBox is a powerful PC virtualization solution allowing you to run a
  wide range of PC operating systems on your Linux system. This includes
  Windows, Linux, FreeBSD, DOS, OpenBSD and others. VirtualBox comes with a broad
  feature set and excellent performance, making it the premier virtualization
  software solution on the market.
 Python-Version: 2.7
vbox@tinderslow6:/srvhdd/releases_tinderlin/5.1.18$ dpkg -I virtualbox-5.1_5.1.18-114002~Debian~jessie_amd64.deb |grep --color=yes libdevmapp
 Depends: libc6 (>= 2.15), libcurl3-gnutls (>= 7.16.2), libdevmapper1.02.1 (>= 2:1.02.90), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libpng12-0 (>= 1.2.13-4), libpython2.7 (>= 2.7), libqt5core5a (>= 5.3.0), libqt5gui5 (>= 5.3.0), libqt5opengl5 (>= 5.0.2), libqt5printsupport5 (>= 5.0.2), libqt5widgets5 (>= 5.2.0), libqt5x11extras5 (>= 5.1.0), libsdl1.2debian (>= 1.2.11), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.9), libvpx1 (>= 1.0.0), libx11-6, libxcb1, libxcursor1 (>> 1.1.2), libxext6, libxinerama1, libxml2 (>= 2.7.4), libxmu6, libxt6, zlib1g (>= 1:1.1.4), psmisc, adduser
So libdevmapper1.02.1 (>= 2:1.02.90).