我是 Linux 初学者,使用 Google & Co. 安装所需的软件(http://doc.qt.io/qt-5/linux.html)对于Qt:
sudo apt-get install build-essential libgl1-mesa-dev
我收到以下错误:
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:
libcheese-gtk23 : Depends: libclutter-gtk-1.0-0 (>= 0.91.8) but it is not going to be installed
Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
libcheese7 : Depends: libclutter-gst-2.0-0 (>= 0.10.0) but it is not going to be installed
Depends: gstreamer1.0-clutter but it is not going to be installed
libclutter-1.0-0 : Depends: libcogl-pango15 (>= 1.15.8) but it is not going to be installed
Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
我通过删除 libcheese-gtk23、libcheese7 和 libclutter-1.0-0 解决了这个问题,但是这也导致我的 Linux 死机(我可以安装并使用 Qt,但重启后,GUI 就死机了)。
如果我不安装 build-essential 和 libgl1-mesa-dev,Qt 会告诉我“找不到 -lGL”。
我的系统:Zenbook 303LN、i7-4500u(配备 HD4000)、NVIDIA Gforce 840M、256GB SSD、8GB RAM、64 位 Ubuntu 14.04
感谢帮助
答案1
运行新的 GTK 3 桌面环境需要 Clutter。重新安装这些库,然后尝试运行sudo apt-get dist-upgrade
以强制升级所有内容,这样您就可以安装 libgl 而不会出现任何其他问题。