我正在尝试在 linux mint 上使用 CMAKE 编译 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
预先感谢您的帮助。
最佳答案
尝试sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
。
关于linux - 无法在linux Mint上安装QT4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20564255/