Virtualboxを再インストールしてください。依存関係が満たされていないか、パッケージが破損していますか?

Virtualboxを再インストールしてください。依存関係が満たされていないか、パッケージが破損していますか?

現在、Virtualboxをアップグレードするのに少し難しいことがあります。私はaptを使って5.2パッケージを削除し(Debianテストを実行しています)、再インストールしようとしています。解決できない依存関係の問題が引き続き発生します。

root@debian:/home/nomax# apt install virtualbox-5.2 
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.2 : 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-image but it is not installable
E: Unable to correct problems, you have held broken packages.
root@debian:/home/nomax# 

現在、最新のVirtualboxバージョンを使用している人のうち、この問題が発生している人はいますか?

編集する:

root@debian:/# cat /etc/apt/sources.list:

# deb xxxx://ftp.au.debian.org/debian/ testing main contrib non-free

# replacement of debian main mirror as checked against netselect-apt

# deb xxxx://mirror.intergrid.com.au/debian/ testing main contrib non-free
deb xxxx://mirror.amaze.com.au/debian/ testing main contrib non-free

# deb-src xxxx://ftp.au.debian.org/debian/ testing main contrib non-free

deb xxxx://security.debian.org/debian-security testing/updates main contrib non-free
# deb-src xxxx://security.debian.org/debian-security testing/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb xxxx://ftp.au.debian.org/debian/ testing-updates main contrib non-free

# deb-src xxxx://ftp.au.debian.org/debian/ testing-updates main contrib non-free

root@debian:/# cat /etc/apt/sources.list.d/*:

deb [arch=amd64] xxxxs://download.docker.com/linux/debian stretch stable
# deb-src [arch=amd64] xxxxs://download.docker.com/linux/debian stretch stable

deb [arch=amd64] xxxxs://download.docker.com/linux/debian stretch stable
# deb-src [arch=amd64] xxxxs://download.docker.com/linux/debian stretch stable

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] xxxx://dl.google.com/linux/chrome/deb/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] xxxx://dl.google.com/linux/chrome/deb/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] xxxx://dl.google.com/linux/chrome/deb/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] xxxx://dl.google.com/linux/chrome/deb/ stable main
# Kubernetes Repo on Google
deb xxxx://apt.kubernetes.io/ kubernetes-xenial main
# Kubernetes Repo on Google
deb xxxx://apt.kubernetes.io/ kubernetes-xenial main
#deb xxxx://repository.spotify.com stable non-free
deb xxxx://repository.spotify.com stable non-free
deb xxxx://deb.torproject.org/torproject.org sid main
deb-src xxxx://deb.torproject.org/torproject.org sid main
deb xxxx://deb.torproject.org/torproject.org tor-experimental-0.3.4.x-sid main
deb-src xxxx://deb.torproject.org/torproject.org tor-experimental-0.3.4.x-sid main
deb xxxx://deb.torproject.org/torproject.org sid main
deb-src xxxx://deb.torproject.org/torproject.org sid main
deb xxxx://deb.torproject.org/torproject.org tor-experimental-0.3.4.x-sid main
deb-src xxxx://deb.torproject.org/torproject.org tor-experimental-0.3.4.x-sid main
# virtualbox official Oracle repository
deb xxxx://download.virtualbox.org/virtualbox/debian stretch contrib
# virtualbox official Oracle repository
deb xxxx://download.virtualbox.org/virtualbox/debian stretch contrib

ベストアンサー1

Debian テストで virtualbox-5.2 バイナリをインストールすると既知の問題があります。

これを見てVirtualbox フォーラムトピック

要約すると、インストールするDebian Stretchのバージョンはlibcurl3に依存し、Debianテストではlibcurl4を使用するため、Debianテストでは機能しません。

彼らが提案した解決策は、virtualbox用のUbuntu 18.04パッケージを手動でインストールすることでした。(買戻し):virtualbox-5.2_5.2.18-124319~Ubuntu~bionic_amd64.deb。私は個人的にはまだこれを試していませんが、まだ私のDebianテストシステムで以前のバージョン(5.2.14)を使用しています。上記の項目をインストールした場合は、他の人が疑問に思うかもしれません。

別の方法は、DebianのcontribリポジトリからVirutalboxのDebianテストパッケージをインストールすることです。 resources.listにcontribリポジトリを設定したようです。を使用して表示およびインストールapt-policy cache virtualboxできる必要がありますapt install virtualbox。が不足していることに注意してください-5.2

おすすめ記事