无法安装 Qt4

无法安装 Qt4

当我给予

sudo apt-get install libqt4-dev

它给出了这个错误

Read packet list ... Done
Deployment tree generation
Read status information ... Done
Some packages can not be installed. This may mean
That an impossible situation was required or, if it is
Using a deployed development that some packages required
They have not been created yet or have been removed from Incoming.
The following information can help you resolve the situation:

The following packages have unsatisfied dependencies:
 Libqt4-dev: Depends: libqt4-dbus (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              It depends: libqt4-declarative (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              It depends: libqt4-designer (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              Depends on: libqt4-dev-bin (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4)
              Depends on: libqt4-help (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              It depends: libqt4-network (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              It depends: libqt4-qt3support (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              It depends: libqt4-script (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed              

It depends: libqt4-scripttools (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              It depends: libqt4-sql (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              It depends: libqt4-svg (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              Depends on: libqt4-test (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              Depends on: libqt4-xml (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              Depends on: libqt4-xmlpatterns (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              It depends: libqtcore4 (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              It depends: libqtgui4 (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but version 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4.1 is to be installed
              Depends on: qt4-linguist-tools (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4)
              Recommend: libqt4-opengl-dev (= 4: 4.8.5 git192-g085f851 dfsg-2ubuntu4) but it is not going to be installed
              Recommend: libqtwebkit-dev (> = 2.0 ~) but it is not going to be installed
And: Unable to fix problems, there are blocked damaged packages.

我运行了一个全新安装的 Ubuntu 的 VirtualBox 映像,一切运行正常,所以我想我搞乱了我的 Host。

我该如何解决这个问题?输出是意大利语,这意味着我的软件包损坏了。我该如何识别它们?我尝试通过源代码安装,但它再次抱怨缺少 Lgl。

谢谢

编辑1 当我给出 Rohit 建议的命令时

sudo apt-get install libqt4-core

它输出

Read packet list ... Done
Deployment tree generation
Read status information ... Done
Some packages can not be installed. This may mean
That an impossible situation was required or, if it is
Using a deployed development that some packages required
They have not been created yet or have been removed from Incoming.
The following information can help you resolve the situation:

The following packages have unsatisfied dependencies:
 Libqt4-core: Depends on: libqt4-dbus (= 4: 4.8.5 + git192-g085f851 + dfsg-2ubuntu4) but version 4: 4.8.5 + git192-g085f851 + dfsg-2ubuntu4.1 is to be installed
               It depends: libqt4-network (= 4: 4.8.5 + git192-g085f851 + dfsg-2ubuntu4) but version 4: 4.8.5 + git192-g085f851 + dfsg-2ubuntu4.1 is to be installed
               Depends on: libqt4-script (= 4: 4.8.5 + git192-g085f851 + dfsg-2ubuntu4) but version 4: 4.8.5 + git192-g085f851 + dfsg-2ubuntu4.1 is to be installed
               It depends: libqt4-test (= 4: 4.8.5 + git192-g085f851 + dfsg-2ubuntu4) but version 4: 4.8.5 + git192-g085f851 + dfsg-2ubuntu4.1 is to be installed
               It depends: libqt4-xml (= 4: 4.8.5 + git192-g085f851 + dfsg-2ubuntu4) but version 4: 4.8.5 + git192-g085f851 + dfsg-2ubuntu4.1 is to be installed
               It depends: libqtcore4 (= 4: 4.8.5 + git192-g085f851 + dfsg-2ubuntu4) but version 4: 4.8.5 + git192-g085f851 + dfsg-2ubuntu4.1 is going to be installed
And: Unable to fix problems, there are blocked damaged packages.

相关内容