总而言之,这是一个问题:
软件包A
取决于B
,C
和D
。
B
取决于X
,X
取决于Y
的旧版本。
不过,C
和D
需要的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).