[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [DONATE]

RC=-1908, dkms, malformed line 21

Hello i m a bignner & have installed Whonix & Virtual Box 5.0.20 (Debian 8 jessie )but as i start it i get the following error

  1. Kernel Driver not installed (rc=-1908) - The virtual box linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv, install by executing '/sbin/rcvboxdrv setup’ but when i run that command i get this Your kernel headers for kernel 3.16.0-4-586 cannot be found. Please install the linux headers 3.16.0-4-586 package, so i tried using *sudo apt-get install dkms but then i get error malformed line 21 in source list /etc/apt/sources.list, The list of sources could not be read. The package lists or status file could not be parsed. I m searching the forum & online since last 3 days

Good day,

Please regard this: http://www.binarytides.com/fix-vbox-kernel-driver-error/

Have a nice day,

Ego

Hello Ego, thanks for your prompt reply

  1. i ran sudo apt-get install build-essential module-assistant (have to run in root otherwise following error bash: sudo: command not found )& got the following message -
    Reading package list …Done
    Building dependency tree
    Reading state information…Done
    Package build-essential is not available , but is refereed to by another package. This may mean that the package is missing , has been obsoleted, or is only available from another source
    E: Package build-essential has no installation candidate
    E: Unable to locate package module assistant
  2. sudo m-a prepare -bash: sudo: command not found
    m-a preapre -bash: sudo: command not found

Don’t know about the vbox error but this can’t be good for anything:

Did you make changes to your sources.list? What is on line 21?

hello entr0py,
here is my source list

deb cdrom:[Debian GNU/Linux 8.4.0 Jessie - Official i386 NETINST Binary-1 2$

#deb cdrom:[Debian GNU/Linux 8.4.0 Jessie - Official i386 NETINST Binary-1 20$

deb http://httpredir.debian.org/debian/ jessie main
deb-src http://httpredir.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

jessie-updates, previously known as ‘volatile’

deb http://httpredir.debian.org/debian/ jessie-updates main
deb-src http://httpredir.debian.org/debian/ jessie-updates main

deb http://packages.linuxmint.com debian import

Debian 8 “Jessie”

deb http://httpredir.debian.org/debian/ jessie main contrib
deb http://download.virtualbox.org/virtualbox/debian jessie contrib
deb https://github.com/Whonix/apt-during-apt.git
deb http://ftp.hk.debian.org/debian jessie main

  • This is a Debian, not a Whonix issue so not really appropriate for this forum. I’ll tell you what I see but I don’t know much about apt-get or sources so you are probably better off searching for it on your own.

  • I can’t tell which one is line 21 because I don’t know if there are blank lines at the beginning. You can be sure by running:
    cat -n /etc/apt/sources.list | grep 21

I’m not sure what your intentions were for adding the last 4 repositories or who advised you to do so.

  1. deb https://github.com/Whonix/apt-during-apt.git doesn’t look like a debian repository and is probably why you’re getting the error. Comment out (#) the line or delete it altogether unless you are sure it should be there. (I don’t know what it is but I could be wrong.)

  2. delete line 19(?):
    deb http://httpredir.debian.org/debian/ jessie main contrib
    instead add contrib to line 7(?) (if you’re sure you need contrib):
    deb http://httpredir.debian.org/debian/ jessie main

  3. I guess you can leave line 22(?) as a backup source? I don’t know…
    deb http://ftp.hk.debian.org/debian jessie main
    It’s the same debian repository as line 7(?).

  4. you can comment out (#) lines that begin with deb-src unless you intend to compile packages yourself.

Once you can
sudo apt-get update && sudo apt-get dist-upgrade
without any errors, then get VirtualBox working.

Read this:

If you plan on installing Guest Additions,
sudo apt-get install dkms
is recommended.

Hello entr0py,
thanks for your help, i have tried linux forums too & the links in the sources list are recommendations from there but as you can see it didn’t work. Also i m facing a very common problem which is easily fixed but as you are aware in some cases to fix this particular issue has turned out to be quite a pain & i m one of those cases. I did what all you suggested but still no progress, following are the details

  1. Commented out all these lines
    a) deb https://github.com/Whonix/apt-during-apt.git
    b) deb http://ftp.hk.debian.org/debian jessie main
  2. Edited the following line - deb http://httpredir.debian.org/debian/ jessie main contrib TO deb http://httpredir.debian.org/debian/ jessie main
  3. Executed the following in root -
    apt-get update && apt-get dist-upgrade
    Result - Reading package lists… Done
    W: GPG error: http://download.virtualbox.org jessie InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A2F683C52980AECF
    W: GPG error: http://packages.linuxmint.com debian Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 3EE67F3D0FF405B2
    W: Duplicate sources.list entry http://httpredir.debian.org/debian/ jessie/main i386 Packages (/var/lib/apt/lists/httpredir.debian.org_debian_dists_jessie_main_binary-i386_Packages)
    Reading package lists… Done
    Building dependency tree _
    Reading state information… Done
    Calculating upgrade… The following packages were automatically installed and are no longer required:
    _ libgsoap5 libvncserver0

    Use ‘apt-get autoremove’ to remove them.
    Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  4. Executed the following in root - apt-get install dkms
    Result - Reading package lists… Done
    Building dependency tree _
    Reading state information… Done
    dkms is already the newest version.
    The following packages were automatically installed and are no longer required:
    _ libgsoap5 libvncserver0

    Use ‘apt-get autoremove’ to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  5. Re boot & start VB again
    Result (not getting malformed line 21 anymore) -

Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
’/sbin/rcvboxdrv setup’
as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT

Failed to open a session for the virtual machine Whonix-Gateway.
The virtual machine ‘Whonix-Gateway’ has terminated unexpectedly during startup with exit code 1 (0x1).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {f30138d4-e5ea-4b3a-8858-a059de4c93fd}

Oh boy… There used to be a walkthrough on installing the Host OS. It’s really needed since the recommendation is to use Linux but many users will be using it for the first time…

Let’s take a step back. First, your Host OS should be clean and error-free and free from random tinkering. I have no idea what changes you’ve made to your host, if you have broken packages, strange settings, etc. Not sure what problems you were trying to solve by adding all those repositories. Did you install packages from Linux Mint? Ideally, you don’t want to use your Host OS for anything except hosting Virtualbox + Whonix.

It sounds like this is a new install - I would recommend starting again. Once you have a brand new, clean Debian install with Internet connectivity, follow these steps closely: https://www.whonix.org/wiki/VirtualBox & press expand to get the detailed instructions. Did you really need virtualbox 5? (if so, follow these instructions: https://www.whonix.org/wiki/VirtualBox/Other_Versions)

If you don’t want to re-install your host, you’re on your own. But at a minimum, you would still need to fix those apt errors, then uninstall and reinstall virtualbox. And verify whonix images…

Hi,
I have installed debain jessie just for using whonix (as it was recommended & also suits my old hardware). I have freshly installed the host OS (earlier windows XP) just before installing VB & have not used the laptop for any other purpose or downloaded any other and random applications…do you still think i should reinstall?

Guys please help, i have searched almost all forums …i’m stuck since over a week, don’t know the way forward

Not sure what you want to hear. I assume you tried all the quick fixes by searching the internet.

My suggestion is that you re-install because I don’t want to try to guess whatever changes you might have made to your system. Installing Debian takes 15 mins which is much faster than being stuck for a week. OTOH,

[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Investors] [Priority Support] [Professional Support]