无法在linux Mint上安装QT4

时间:2013-12-13 10:32:19

标签: linux qt4 cmake vpn mint

我正在尝试使用CMAKE在linux mint上编译vpnshrew。 但是QT4缺失了,我已经尝试了一切但没有成功。起始线是这种依赖性错误:

$ sudo apt-get install libqt4-core
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:
 libqt4-core : Depends: libqt4-dbus (= 4:4.8.3+dfsg-0ubuntu3) but it is not going to be installed
           Depends: libqt4-network (= 4:4.8.3+dfsg-0ubuntu3) but it is not going to be installed
           Depends: libqt4-script (= 4:4.8.3+dfsg-0ubuntu3) but it is not going to be installed
           Depends: libqt4-test (= 4:4.8.3+dfsg-0ubuntu3) but 4:4.8.3+dfsg-0ubuntu3.1 is to be installed
           Depends: libqt4-xml (= 4:4.8.3+dfsg-0ubuntu3) but 4:4.8.3+dfsg-0ubuntu3.1 is to be installed
           Depends: libqtcore4 (= 4:4.8.3+dfsg-0ubuntu3) but 4:4.8.3+dfsg-0ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.

我已经尝试了很多解决方案。即

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get update

提前感谢您的帮助。

1 个答案:

答案 0 :(得分:2)

尝试sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui