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

无法安装 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。

我看过类似的帖子,并尝试了以下操作:

跑步

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.

答案1

我尝试安装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

它将包括所有必需的包。

答案2

我在 Ubuntu 14.04.2 中尝试安装 qtcreator 时遇到了同样的问题。此外,尝试安装 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

答案3

注意:大多数与 dev 包安装有关的问题已通过 mesa 10.1.3-0ubuntu0.4 解决

目前,trusty 建议的软件包

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

答案4

您可以使用突触用于安装libglew-dev包。您还可以在此处看到所有依赖项,标记需要安装的依赖项,然后单击“应用”按钮即可安装所需的包。

相关内容