Linux Mint 17에 Virtualbox 설치

Linux Mint 17에 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를 설치하려면 다음 단계를 따르세요.

  1. sudo apt-get remove virtualbox virtualbox-4.* virtualbox-5.0
  2. 가상 머신을 다운로드합니다.
  3. sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian [name of your distribution] contrib" >> /etc/apt/sources.list.d/virtualbox.list
  4. 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

오라클 버추얼박스 설치

sudo apt-get update
sudo apt-get install virtualbox-5.0

관련 정보