libglib2.0-dev broken?

Peter Garrett peter.garrett at optusnet.com.au
Wed Sep 20 05:33:41 UTC 2006


On Wed, 20 Sep 2006 11:07:34 +0800
Chong Zan Kai <zkchong at gmail.com> wrote:

> Dear all,
> 
> Today I downloaded gaim2.0 beta 3.1 and I trying to compile it. During
> the ./configure process, it complains that I need to install glib. So, I
> look at the apt-cache and I decided to install libgib2.0-dev. However,
> sad to say that this package is broken in the repository. 
> 
> Could anyone tell me what to do in this stage?
> 
[snip]
> The following packages have unmet dependencies.
>   libglib2.0-dev: Depends: libglib2.0-0 (= 2.10.2-1ubuntu3) but
> 2.10.3-0ubuntu1 is to be installed
> E: Broken packages

I suspect there is an error in your /etc/apt/sources.list  somewhere
( perhaps a missing line ? )

I have libglib2.0-dev installed here on dapper

Perhaps you could send your /etc/apt/sources.list , or just look at it
closely and check that you have updates and security enabled.

 $ apt-cache policy libglib2.0-dev
libglib2.0-dev:
  Installed: 2.10.3-0ubuntu1
  Candidate: 2.10.3-0ubuntu1
  Version table:
 *** 2.10.3-0ubuntu1 0
        500 http://au.archive.ubuntu.com dapper-updates/main Packages
        100 /var/lib/dpkg/status
     2.10.2-1ubuntu3 0
        500 http://au.archive.ubuntu.com dapper/main Packages

As you see, the installed version is from the dapper-updates repository,
and the output below suggests that there is a problem with your sources,
or that you need to run  sudo apt-get update to make dapper-updates
available, assuming that line is present.

$ apt-cache policy libglib2.0-0
libglib2.0-0:
  Installed: 2.10.3-0ubuntu1
  Candidate: 2.10.3-0ubuntu1
  Version table:
 *** 2.10.3-0ubuntu1 0
        500 http://au.archive.ubuntu.com dapper-updates/main Packages
        100 /var/lib/dpkg/status
     2.10.2-1ubuntu3 0
        500 http://au.archive.ubuntu.com dapper/main Packages

The conflicting  2.10.2 version that apt complains about was in main - but
has since been updated to 2.10.3 , so it also comes from dapper-updates

You might also try

sudo apt-get -f install

to resolve conflicts, if you are sure your sources.list is OK. Of course,
you will need to run 

sudo apt-get update


Peter




More information about the ubuntu-users mailing list