无法安装libglew-dev,因为libcheese和libclutter没有所需的版本

我在尝试安装libglew-dev时收到以下错误消息,

 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: 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. 

然而,所有这些包装显然已经安装好了。

我在这篇文章中尝试了所有可能的解决方案,没有任何运气。 我没有添加任何PPA。 ubuntu的版本是14.04.2。

我看了类似的post,并尝试了以下内容:

运行

 dpkg --get-selections | grep hold 

没有打印。

 sudo apt-get -oDebug::pkgProblemResolver=true install -f 

没有任何兴趣, 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

我试图安装libglew-dev ,我遇到了同样的问题。 我必须包含以下软件包才能安装它

 sudo apt-get install libglew-dev libcheese7 libcheese-gtk23 libclutter-gst-2.0-0 libcogl15 libclutter-gtk-1.0-0 libclutter-1.0-0 xserver-xorg-input-all 

它将包括所有必需的包。

我在尝试安装qtcreator的Ubuntu 14.04.2中遇到了同样的问题。 此外,尝试安装Qt4 / 5开发软件包(例如qt4-default和qt5-default)会将整个X.org降级为原始可信赖版本而不是lts-utopic。

这种依赖性混乱以某种方式连接到新的Mesa包,并且可以通过手动安装lts-utopic版本来修复 。 我安装了这些包:

 sudo apt-get install xserver-xorg-dev-lts-utopic mesa-common-dev-lts-utopic libgles2-mesa-dev-lts-utopic libgles1-mesa-dev-lts-utopic libgl1-mesa-dev-lts-utopic libegl1-mesa-dev-lts-utopic 

注意:使用mesa 10.1.3-0ubuntu0.4解决了dev package install的大多数问题

软件包目前以可靠的方式提供

引用错误 – https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1424466

您可以使用Synaptic安装libglew-dev软件包。 在那里,您可以看到所有依赖项,并通过标记所需的依赖项进行安装,然后单击“应用”按钮将安装所需的包。