gpt4 book ai didi

dependencies - 安装 libgtk-3-dev,未满足的依赖项

转载 作者:行者123 更新时间:2023-12-05 08:27:32 35 4
gpt4 key购买 nike

我正在尝试安装 seahorse-3.16.0。运行 ./configure 时,我得到:

configure: error: Package requirements (gtk+-3.0 >= 3.4.0) were not met:

No package 'gtk+-3.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GTK_CFLAGS
and GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

我已经尝试安装 libgtk-3-dev:

sudo apt-get install libgtk-3-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:
libgtk-3-dev : Depends: libglib2.0-dev (>= 2.37.5) but it is not going to be installed
Depends: libgdk-pixbuf2.0-dev (>= 2.27.1) but it is not going to be installed
Depends: libpango1.0-dev (>= 1.32.4) but it is not going to be installed
Depends: libatk1.0-dev (>= 2.7.5) but it is not going to be installed
Depends: libatk-bridge2.0-dev but it is not going to be installed
Depends: libcairo2-dev (>= 1.13.0~20140204) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我试过安装单独的包,但它们归结为依赖于已经存在并且一直是最新的东西。我也尝试过使用 aptitude 安装 libgtk-3-dev,我已经多次运行 sudo apt-get update 和 sudo apt-get upgrade。

感谢任何帮助。

最佳答案

您必须降级一些软件包才能满足依赖性要求。您可以从调用 apt-get install 时返回的错误消息中获取降级版本。例如,消息

libglib2.0-dev : Depends: libglib2.0-0 (= 2.40.0-2) but 2.40.2-0ubuntu1 is to be installed

您需要将 libglib2.0-0 降级到 2.40.0-2 版本

sudo apt-get install libglib2.0-0=2.40.0-2

在安装 libglib2.0-dev 之前

sudo apt-get install libglib2.0-dev

在安装 libgtk-3-dev 之前您必须(重新)安装一些其他软件包

sudo apt-get install libcairo2=1.13.0~20140204-0ubuntu1 libcairo-gobject2=1.13.0~20140204-0ubuntu1

sudo apt-get install libcairo2-dev

sudo apt-get install libpango-1.0-0=1.36.3-1ubuntu1 libpangocairo-1.0-0=1.36.3-1ubuntu1 libpangoft2-1.0-0=1.36.3-1ubuntu1 libpangoxft-1.0-0=1.36.3-1ubuntu1 gir1.2-pango-1.0=1.36.3-1ubuntu1

sudo apt-get install libpango1.0-dev

sudo apt-get install libgtk-3-dev

关于dependencies - 安装 libgtk-3-dev,未满足的依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38752214/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com