problem when installing headers in kali linux

2

Hello, I was trying to install the headers in my kali linux to solve an error that I got in virtual box for this I do the following:

$ dpkg -i linux-kbuild-4.6_4.6.4-1kali1_i386.deb
$ dpkg -i linux-headers-4.6.0-kali1-common_4.6.4-1kali1_i386.deb
$ dpkg -i linux-headers-4.6.0-kali1-all-i386_4.6.4-1kali1_i386.deb
$ dpkg -i linux-headers-4.6.0-kali1-686-pae_4.6.4-1kali1_i386.deb

But when I updated the package linux-headers-4.6.0-kali1-all-i386_4.6.4-1kali1_i386 even though I included that same package it gives me the same error:

dpkg -i linux-headers-4.6.0-kali1-all-i386_4.6.4-1kali1_i386.deb
Seleccionando el paquete linux-headers-4.6.0-kali1-all-i386 previamente no seleccionado.
(Leyendo la base de datos ... 344716 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar linux-headers-4.6.0-kali1-all-i386_4.6.4-1kali1_i386.deb ...
Desempaquetando linux-headers-4.6.0-kali1-all-i386 (4.6.4-1kali1) ...
dpkg: problemas de dependencias impiden la configuración de linux-headers-4.6.0-kali1-all-i386:
 linux-headers-4.6.0-kali1-all-i386 depende de linux-headers-4.6.0-kali1-686 (= 4.6.4-1kali1); sin embargo:
  El paquete 'linux-headers-4.6.0-kali1-686' no está instalado.

dpkg: error al procesar el paquete linux-headers-4.6.0-kali1-all-i386 (--install):
 problemas de dependencias - se deja sin configurar
Se encontraron errores al procesar:
 linux-headers-4.6.0-kali1-all-i386

Basically my problem is that when I start virtualbox I get the following error so I was trying to update my headers the error is:

The sources I download them from this page: link

    
asked by Perl 10.02.2017 в 13:35
source

1 answer

3

The first thing I did with a purge was to delete the installation of my virtualbox and dkms to make the installation clean with the new headers. First clean with purge (only necessary in case you have installed it):

sudo apt-get purge virtualbox\* 
sudo apt-get purge dkms\* 

After we download the updated headers from the following page:

link

Once downloaded we install them:

$ dpkg -i linux-kbuild-4.6_4.6.4-1kali1_i386.deb
$ dpkg -i linux-headers-4.6.0-kali1-common_4.6.4-1kali1_i386.deb
$ dpkg -i linux-headers-4.6.0-kali1-all-i386_4.6.4-1kali1_i386.deb
$ dpkg -i linux-headers-4.6.0-kali1-686-pae_4.6.4-1kali1_i386.deb

We do an update:

sudo apt-get update

In my case I was not installed linux-headers-4.6.0-kali1-all-i386_4.6.4-1kali1_i386.deb , still install dkms and virtualbox again and it worked correctly. To install dkms we do:

sudo apt-get install dkms 

To install virtualbox we download it from the official page (preferably updated and if it is for kali linux we recommend using Debian Stretch):

link

And we install it like any other .deb package:

dpkg -i el_paquete_actualizado_de_virtualbox.deb
    
answered by 10.02.2017 / 13:57
source