在 Debian 上安装 virtualbox:依赖问题

在 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

答案1

看来版本与您用于 virtualbox 的存储库冲突。

您可以更好地使用virtualbox在其官方提供的repo 下载关联。

答案2

乌尔里希·丹格尔斯评论是正确的。我指定了存储库,sources.list但没有正确设置固定,因此我从不稳定的版本中提取了我不想要的冲突包。

这个博客帮助我正确配置固定,现在virtualbox安装正确。

答案3

我花了很多时间解决这个问题,终于解决了。这有效!首先下载这个文件 依赖文件 解压它,您将在该文件夹中看到 debs 文件。打开终端 cd 到该文件夹​​并运行 dpkg -i *.deb 之后就可以正常安装 VirtualBox 了。

答案4

sudo apt-get install -f其次是sudo apt-get install virtualbox

相关内容