Debian 10에 virtualbox 5.2 또는 6.0을 설치하는 방법은 무엇입니까?

Debian 10에 virtualbox 5.2 또는 6.0을 설치하는 방법은 무엇입니까?

나는 다음과 같은 다양한 지침을 따랐습니다.

https://computingforgeeks.com/install-virtualbox-ubuntu-debian/

https://tecadmin.net/install-virtualbox-on-debian-10-buster/

단계적으로:

apt install virtualbox-6.0

다음과 같이 실패합니다.

root@debian:~# apt-get update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian-security buster/updates InRelease              
Hit:3 http://deb.debian.org/debian buster-updates InRelease                       
Hit:4 http://download.virtualbox.org/virtualbox/debian stretch InRelease                                  
Get:5 https://download.virtualbox.org/virtualbox/debian buster InRelease [7,733 B]                        
Get:6 https://download.virtualbox.org/virtualbox/debian buster/contrib amd64 Packages [1,521 B]
Fetched 9,254 B in 2s (4,145 B/s)    
Reading package lists... Done
root@debian:~# apt-get install virtualbox-6.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-6.0 : Depends: libcurl3 (>= 7.16.2) but it is not installable
                  Depends: libvpx4 (>= 1.6.0) but it is not installable
                  Recommends: libsdl-ttf2.0-0 but it is not going to be installed
                  Recommends: linux-headers-generic but it is not installable or
                              linux-headers-generic-pae but it is not installable or
                              linux-headers-686-pae but it is not installable or
                              linux-headers-amd64 but it is not going to be installed or
                              linux-headers-2.6-686 but it is not installable or
                              linux-headers-2.6-amd64 but it is not installable or
                              linux-headers but it is not installable
                  Recommends: linux-image but it is not installable
E: Unable to correct problems, you have held broken packages.

이러한 종속성을 수동으로 설치하려고 시도했지만 libcurl3을 설치하려고 하면 libcurl4만 설치할 수 있다는 메시지가 나타납니다. libcurl4를 설치하면 4가 아닌 libcurl3이 필요하기 때문에 아무 영향도 미치지 않는 것 같습니다.

답변1

내 생각엔 당신에게 그게 필요할 것 같아요 deb http://download.virtualbox.org/virtualbox/debian bionic contrib. 다음은 나에게 효과적이었습니다.

    wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
    wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

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

    apt update
    apt install virtualbox-6.0

/etc/apt/sources.list그 동안 다른 지침을 따르면서 변경한 내용을 모두 제거하는 것이 좋습니다 .

답변2

virtualbox 패키지 출시데비안 10, buster코드명은 virtualbox URL에 허용됩니다.

다음 줄이 있어야 합니다 /etc/apt/sources.list.d/virtualbox.list.

deb https://download.virtualbox.org/virtualbox/debian buster contrib

virtualbox 공식 웹사이트의 설치 지침:

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

sudo apt-get update
sudo apt-get install virtualbox-6.0

Virtualbox 저장소는 virtualbox-6.1, virtualbox-6.0및 3가지 패키지 버전을 제공합니다 virtualbox-5.2.

관련 정보