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その間、他の指示に従って変更をすべて削除することをお勧めします。

おすすめ記事