开发者

libgtk version issue on ubuntu

I installed gtk+2.0 version 2.18.3 but when I run this command:

dpkg -i libgtk2.0-dev_2.18.3-1_i386.deb

I have the next error. But when I checked the /usr/lib/libgtk2.0-0 I found the version of the libgtk is 2.12.9.

Why the new installation not override the pre one? And what I should do now?

----------------------------------------ERROR------

Unpacking replacement libgtk2.0-dev ...

dpkg: dependency problems prevent configuration of libgtk2.0-dev:

 libgtk2.0-dev depends on libgtk2.0-0 (= 2.18.3-1); however:

  Version of libgtk2.0-0 on system is 2.12.9-3ubuntu5.

 libgtk2.0-dev depends on libglib2.0-0 (>= 2.21.3); however:

  Version of libgli开发者_JS百科b2.0-0 on system is 2.16.6-0ubuntu1.2.

 libgtk2.0-dev depends on libglib2.0-dev (>= 2.21.3); however:

  Version of libglib2.0-dev on system is 2.16.6-0ubuntu1.2.

 libgtk2.0-dev depends on libcairo2-dev (>= 1.6.4-6.1); however:

  Version of libcairo2-dev on system is 1.6.0-0ubuntu2. 

dpkg: error processing libgtk2.0-dev (--install):

 dependency problems - leaving unconfigured


You can't just install a new libgtk package willy-nilly; you need to upgrade the packages that it depends on, at the same time (in this case, libglib, libcairo, and their respective dev packages).

(This question is more appropriate for Super User, and I've voted to migrate the question there.)


You probably want apt-get install libgtk2.0-dev=2.18.3-1, because most people really don't want to be in the business of manually managing package versions and dependencies.

But if that doesn't work, you'll need to manually look at the dependencies of libgtk2.0-dev (with apt-cache show libgtk2.0-dev) and download the matching versions of each package it depends on if they're not already installed (again, apt-cache show (dependency)).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜