ミントにVirtualBox 5をインストールしようとしています。これが出力です
$ sudo aptitude install virtualbox-5.0
The following NEW packages will be installed:
virtualbox-5.0{b}
0 packages upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 64.2 MB of archives. After unpacking 161 MB will be used.
The following packages have unmet dependencies:
virtualbox-5.0 : Depends: libdevmapper1.02.1 (>= 2:1.02.99) but 2:1.02.77-6ubuntu2 is installed.
Depends: libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.1 is installed.
Depends: libvpx2 (>= 1.4.0) which is a virtual package.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) virtualbox-5.0 [Not Installed]
Accept this solution? [Y/n/q/?] Y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
依存関係にはどのような問題がありますか?
出力sudo apt-cache policy virtualbox virtualbox-5.0 libdevmapper1.02.1 libstdc++6 libvpx2
:
sudo apt-cache policy virtualbox virtualbox-5.0 libdevmapper1.02.1 libstdc++6 libvpx2
virtualbox:
Installed: (none)
Candidate: 4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1
Version table:
4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/multiverse amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/multiverse amd64 Packages
4.3.10-dfsg-1 0
500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages
virtualbox-5.0:
Installed: (none)
Candidate: 5.0.16-105871~Ubuntu~wily
Version table:
5.0.16-105871~Ubuntu~wily 0
700 http://download.virtualbox.org/virtualbox/debian/ wily/contrib amd64 Packages
5.0.2-102096~Ubuntu~trusty 0
700 http://extra.linuxmint.com/ qiana/main amd64 Packages
libdevmapper1.02.1:
Installed: 2:1.02.77-6ubuntu2
Candidate: 2:1.02.77-6ubuntu2
Version table:
*** 2:1.02.77-6ubuntu2 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
libstdc++6:
Installed: 4.8.4-2ubuntu1~14.04.1
Candidate: 4.8.4-2ubuntu1~14.04.1
Version table:
*** 4.8.4-2ubuntu1~14.04.1 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
100 /var/lib/dpkg/status
4.8.2-19ubuntu1 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
libvpx2:
Installed: (none)
Candidate: (none)
Version table:
出力sudo apt-get install virtualbox-5
:
sudo 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: libdevmapper1.02.1 (>= 2:1.02.99) but 2:1.02.77-6ubuntu2 is to be installed
Depends: libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.1 is to be installed
Depends: libvpx2 (>= 1.4.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
答え1
VirtualBoxをインストールするには、次の手順に従います。
sudo apt-get remove virtualbox virtualbox-4.* virtualbox-5.0
- 仮想マシンをダウンロードします。
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian [name of your distribution] contrib" >> /etc/apt/sources.list.d/virtualbox.list
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
この回答は次のようになりました。ここ。
`
答え2
download.virtualbox.org
ソースを削除してみてください。切り替える特別な理由がない限り、ディストリビューションパッケージに固執します。
答え3
ファイルを編集し、/etc/apt/sources.list
次の行のいずれかを追加します。
deb http://download.virtualbox.org/virtualbox/debian trusty contrib
保存と終了
以下を使用して更新:sudo apt-get update
~によるとvirtualbox_wikiあなたはインストールする必要がありますdkms
sudo apt-get install dkms
Oracle公開鍵を設定します。
wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
sudo apt-key add oracle_vbox.asc
Oracleバーチャルボックスのインストール
sudo apt-get update
sudo apt-get install virtualbox-5.0