linux - 无法在linux Mint上安装QT4

标签 linux qt4 cmake vpn linux-mint

我正在尝试在 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/

相关文章:

c++ - 膨胀的 EXE 大小,以及不需要的 Qt/MingW 依赖项

CMake 的对象输出文件夹变量

c++ - 为什么 cmake 在 64 位系统上查找 32 位库而不是 64 位库?

c++ - 在QT gui上将.csv文件导入到sqlite3数据库表

c++ - 无法在简单程序中按下 QPushButton

java - 需要帮助创建和安装 capnpc-java(Java 的 CapnProto)

c - 使用 scanf 的格式错误的输出(黑客攻击 : The Art of Exploitation Example)

java - 如何在java程序中调用shell脚本?

linux - 无法使 QWindow::fromWinId 正常工作

C/海湾合作委员会 : global variables shared between threads need to be volatile?