Debian
在 Debian 上安裝 virtualbox:依賴問題
我目前正在執行 Debian Wheezy(測試)。我想安裝
virtualbox
,但是當我執行以下命令時:# aptitude install virtualbox
…我得到以下結果:
The following packages have unmet dependencies: libqt4-qt3support : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed. Depends: libqtgui4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed. qdbus : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed. libqt4-script : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed. libqt4-designer : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed. Depends: libqtgui4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed. libqt4-network : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed. libqt4-dbus : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed. qt4-qtconfig : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed. Depends: libqtgui4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed. libqt4-sql : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed. libqt4-xml : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed. libqt4-sql-mysql : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
然後,Aptitude 給了我一個解決方案列表,其中沒有一個看起來很吸引人。它似乎想從不穩定而不是測試安裝軟體包,但我真的不想這樣做。 如果包的版本號正確,為什麼會出現這個問題?
這是我的內容
/etc/apt/source.list
:deb http://debian.man.ac.uk/debian/ wheezy main non-free contrib deb-src http://debian.man.ac.uk/debian/ wheezy main non-free contrib deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib non-free deb http://debian.man.ac.uk/debian/ wheezy-updates main contrib non-free deb-src http://debian.man.ac.uk/debian/ wheezy-updates main contrib non-free # The following line is required for iceweasel in wheezy deb http://debian.man.ac.uk/debian experimental main # The following line is required for icedove in wheezy deb http://debian.man.ac.uk/debian unstable main
Ulrich Dangel 的評論是正確的。我指定了 repos,
sources.list
但沒有正確設置 pinning,所以我從不想要的不穩定中提取了衝突的包。該部落格幫助我正確配置了固定,現在
virtualbox
可以正確安裝。
似乎版本與您用於 virtualbox 的 repo 衝突。
您可以更好地使用 virtualbox 在其官方 下載連結中提供的 repo。