即使从 Ubuntu 14.04 升级到 16.06 后也没有获取 libglib2.0-dev (更新的库)

即使从 Ubuntu 14.04 升级到 16.06 后也没有获取 libglib2.0-dev (更新的库)

我想从 git 编译并安装一些用于 reddit 的东西。

当我使用 ./configure.ac 时,它显示以下错误。

./configure: line 5088: GLIB_GSETTINGS: command not found
./configure: line 5089: syntax error near unexpected token `1.42.0'
./configure: line 5089: `GOBJECT_INTROSPECTION_CHECK(1.42.0)'

当我在 stackoverflow 中搜索时,它显示 GLIB_GSETTINGS 在 libglib2.0-dev 中找到,但当我尝试通过安装它时

sudo apt-get install libglib2.0

它再次抛出以下错误

    Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libglib2.0-0-refdbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil-dev' for regex 'libglib2.0'
Note, selecting 'libglib2.0-tests' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0-dbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-bin' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dev' for regex 'libglib2.0'
Note, selecting 'libglib2.0-doc' for regex 'libglib2.0'
Note, selecting 'libglib2.0-data' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0' for regex 'libglib2.0'
libglib2.0-0 is already the newest version (2.48.1-1~ubuntu16.04.1).
libglib2.0-data is already the newest version (2.48.1-1~ubuntu16.04.1).
libglib2.0-bin is already the newest version (2.48.1-1~ubuntu16.04.1).
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:
 libglib2.0-0-dbg : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.1-1~ubuntu16.04.1 is to be installed
 libglib2.0-0-refdbg : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.1-1~ubuntu16.04.1 is to be installed
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.1-1~ubuntu16.04.1 is to be installed
                  Depends: libglib2.0-bin (= 2.48.0-1ubuntu4)

我一个月前已将系统从 14.04 升级到 16.04,是我错过了什么还是我现在做错了什么。

reddit git 源的东西在这里。https://github.com/samdroid-apps/something-for-reddit 您也可以在这里检查所有依赖项,软件包详细信息:something-for-reddit-git 0.1-1

答案1

答案是降级。

当我在 stackoverflow 中再次搜索时,我发现其他人也面临着同样的问题,建议他们使用以下命令降级相应的库。

sudo apt-get install libglib2.0-0=2.48.0-1ubuntu4

sudo apt-get install libglib2.0-dev

现在我陷入了下一个问题,即./configure: line 5089GOBJECT_INTROSPECTION_CHECK(1.42.0)'

这是建议降级的链接:https://askubuntu.com/questions/58664/cant-install-package-libglib2-0-dev-because-it-depends-on-some-unknown-version/60314

相关内容