Erro ao instalar o VirtualBox no Kali Linux

3

Estou tentando instalar o VB em Kali. Eu digito:

echo "deb http://download.virtualbox.org/virtualbox/debian vivid contrib" >> /etc/apt/sources.list.d/virtualbox.list
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
apt-get update
apt-get install virtualbox-5.0

Mas a saída é:

root@kali:/# apt-get install virtualbox-5.0
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.0 : Depends: libpng12-0 (>= 1.2.13-4) but it is not installable
                  Depends: libsdl1.2debian (>= 1.2.11) but it is not installable
                  Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
                  Depends: libvpx1 (>= 1.0.0) but it is not installable
                  Recommends: libsdl-ttf2.0-0 but it is not installable
                  Recommends: dkms but it is not installable
                  Recommends: linux-headers but it is not installable
E: Unable to correct problems, you have held broken packages.

Alguém sabe o que está acontecendo? Obrigado.

    
por Pete 17.09.2016 / 12:11

1 resposta

3

De acordo com o site oficial , é necessário instalar dkms primeiro:

sudo apt-get install dkms
sudo apt-get update
sudo apt-get install virtualbox-5.1

Ubuntu/Debian users might want to install the dkms package to ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade. For Debian it is available in Lenny backports and in the normal repository for Squeeze and later.

Editar

Kali linux é uma distribuição baseada no Debian, para adicionar a fonte de caixa virtual, você deve digitar (não o debian vivid ):

echo "deb http://download.virtualbox.org/virtualbox/debian jessie contrib" > /etc/apt/sources.list.d/vbox.list

Algumas dependências precisam ser instaladas:

wget http://http.us.debian.org/debian/pool/main/libv/libvpx/libvpx1_1.3.0-3_amd64.deb
wget http://http.us.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.50-2+deb8u2_amd64.deb
wget http://http.us.debian.org/debian/pool/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u2_amd64.deb
wget http://http.us.debian.org/debian/pool/main/s/sdl-ttf2.0/libsdl-ttf2.0-0_2.0.11-3_amd64.deb

Instalar dependências:

dpkg -i libpng12-0_1.2.50-2+deb8u2_amd64.deb
dpkg -i libvpx1_1.3.0-3_amd64.deb
dpkg -i libssl1.0.0_1.0.1t-1+deb8u2_amd64.deb
dpkg -i libsdl-ttf2.0-0_2.0.11-3_amd64.deb

Assumindo que você instalou dkms e linux-headers , você pode instalar o vitrualbox via linha de comando ou baixando o deb da seguinte forma:

http://download.virtualbox.org/virtualbox/5.1.4/virtualbox-5.1_5.1.4-110228~Debian~jessie_amd64.deb
dpkg -i virtualbox-5.1_5.1.4-110228~Debian~jessie_amd64.deb
    
por 17.09.2016 / 12:27