贴:如何安装依赖项是同一软件包的不同版本的软件包?

时间:2018-07-29 05:56:45

标签: dependencies apt

总而言之,这是一个问题: 软件包A取决于BCD

B取决于XX取决于Y旧版本

不过,CD需要Y的新版本

如何解决该错误?


详细信息

我正在安装软件包libgles1-mesa-dev

并且apt列出了依赖项:

The following packages have unmet dependencies:
libgles1-mesa-dev : Depends: libgles1-mesa (= 13.0.6-1+b2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我手动下载了13.0.6-1 + b2和dpkg -i

Selecting previously unselected package libgles1-mesa:amd64.
(Reading database ... 365369 files and directories currently installed.)
Preparing to unpack libgles1-mesa_13.0.6-1+b2_amd64.deb ...
Unpacking libgles1-mesa:amd64 (13.0.6-1+b2) ...

dpkg: dependency problems prevent configuration of libgles1-mesa:amd64:
 libgles1-mesa:amd64 depends on libglapi-mesa (= 13.0.6-1+b2); however:
Version of libglapi-mesa:amd64 on system is 18.1.4-1.

dpkg: error processing package libgles1-mesa:amd64 (--install):
 dependency problems - leaving unconfigured

Processing triggers for libc-bin (2.27-3) ...
Errors were encountered while processing:
 libgles1-mesa:amd64

所以我也将libglapi-mesa从18.1.4-1降级到13.0.6-1 + b2。

我再次跑了,但它给出了错误:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libglx-mesa0 : Depends: libglapi-mesa (= 18.1.4-1) but 13.0.6-1+b2 is to be installed
 libosmesa6 : Depends: libglapi-mesa (= 18.1.4-1) but 13.0.6-1+b2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

0 个答案:

没有答案