Cannot install glib-dev

Solution 1:

The problem is that you are installing the package with dpkg, which doesn't install dependencies. You have to use apt-get (aptitude could do too) like this:

sudo apt-get install libglib2.0-dev

This way all dependencies needed will be automatically installed.