Kali LinuxでVirtualBoxをインストール中にエラーが発生しました。

Kali LinuxでVirtualBoxをインストール中にエラーが発生しました。

KaliにVBをインストールしようとしています。私は次のように入力します:

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

ただし、出力は次のようになります。

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.

何が起こっているのか知っている人はいますか?ありがとうございます。

ベストアンサー1

公式によるとウェブサイト、まずインストールする必要がありますdkms

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

dkmsUbuntu / Debianユーザーは、次のapt-getアップグレード中にLinuxカーネルのバージョンが変更されたときにVirtualBoxホストカーネルモジュール(vboxdrv、vboxnetflt、vboxnetadp)が正しく更新されるようにこのパッケージをインストールできます。 Debian では、Lenny バックポートと Squeeze 以降の通常のリポジトリで使用できます。

編集する

Kali linuxはDebianベースのディストリビューションで、(代わりにdebian vivid)入力する必要がある仮想ボックスソースを追加します。

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

いくつかの依存関係をインストールする必要があります。

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

依存関係をインストールします。

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

すでに存在し、インストールされていると仮定すると、コマンドラインからdkmsvitrualboxlinux-headersをインストールするか、deb次のようにダウンロードできます。

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

おすすめ記事