Can't install libglew-dev because libcheese and libclutter don't have the required versions

I'm getting the following error message when attempting to install 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.

All those packages are however apparently already installed.

I have tried all possible solutions in this post, without any luck. I have not added any PPAs. The version of ubuntu is 14.04.2.

I have looked at similar posts, and tried the following:

Running

dpkg --get-selections | grep hold

prints nothing.

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

Gives me nothing of interest, 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


I tried to install libglew-dev and I had the same problem. I had to include the following packages to install it

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

It will include then all the required packages.


I had the same problem in Ubuntu 14.04.2 trying to install qtcreator. Also trying to install Qt4/5 development packages such as qt4-default and qt5-default would have downgraded the whole X.org to the original trusty version instead of lts-utopic.

This dependency mess is somehow connected to the new Mesa packages, and can be fixed by manually installing lts-utopic versions. I installed these packages:

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

Note: most issues with dev package install has been resolved with mesa 10.1.3-0ubuntu0.4

Packages are currently available in trusty -proposed

Referring bug - https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1424466