安装以下内容时出现错误。它到底意味着什么以及如何解决它? :)
# apt-get install libopenjp2-7-dev libfreetype6-dev libfontconfig1-dev libjpeg-dev libtiff5-dev libnss3-dev libgpgmepp-dev qtbase5-dev libcairo2-dev libboost-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libopenjp2-7-dev is already the newest version (2.5.0-2).
libfontconfig1-dev is already the newest version (2.14.2-6).
libjpeg-dev is already the newest version (1:2.1.5-2).
libtiff5-dev is already the newest version (4.5.1+git230720-1).
libnss3-dev is already the newest version (2:3.94-1).
libgpgmepp-dev is already the newest version (1.18.0-4).
qtbase5-dev is already the newest version (5.15.10+dfsg-4).
libcairo2-dev is already the newest version (1.18.0-1).
libboost-dev is already the newest version (1.74.0.3).
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:
libfreetype6-dev : Depends: libfreetype-dev (= 2.13.0+dfsg-1) but 2.13.2+dfsg-1 is to be installed
发行版
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux trixie/sid
Release: n/a
Codename: trixie
答案1
该包是一个2023 年 8 月 11 日左右删除的过渡方案:
debian/control:删除过渡包 libfreetype6-dev
关闭:#1038235
请删除 trixie 的过渡包 libfreetype6-dev (来自源包 freetype),因为它已经与 bullseye 和 bookworm 一起发布了。
由于没有理由再保留此软件包,因此不要尝试安装它。相反,安装它所依赖的东西:libfreetype-dev
同时获得更新版本的软件包。
如果您尝试使用外部源代码包或旧的 Debian 源代码进行构建,则可能需要编辑该debian/control
文件以反映更改,或者使用忽略控制文件中的构建依赖项-d
的选项。dpkg-buildpackage