Ubuntu 18.04下安装fontconfig-dbgsym出现依赖错误

Ubuntu 18.04下安装fontconfig-dbgsym出现依赖错误

我正在尝试在 Docker 内的 Ubuntu 18.04 下安装 fontconfig-dbgsym,在 Docker for Mac 上运行。

我使用以下 Dockerfile:

FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y ubuntu-dbgsym-keyring lsb-release
RUN \
    ( \
        echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse"; \
        echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse"; \
        echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse"; \
    ) > /etc/apt/sources.list.d/ddebs.list 
RUN apt-get update
RUN apt-get install -y fontconfig
RUN apt-get install -y fontconfig-dbgsym

除了最后一步之外,一切正常,失败并显示:

Reading package lists...
Building dependency tree...
Reading state information...
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:
 fontconfig-dbgsym : Depends: fontconfig (= 2.12.6-0ubuntu2.2) but 2.12.6-0ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt-get install -y fontconfig-dbgsym' returned a non-zero code: 100

它抱怨依赖项fontconfig=2.12.6-0ubuntu2.2未安装,但上一步已成功安装。

难道我做错了什么?

答案1

这不是一个错误,至少在 Ubuntu 中不是。您已添加“建议的”ddeb 存储库,但未添加相应的 deb 存储库。因此,您的候选版本不匹配。

您应该删除“建议”行,除非您想在发布之前帮助测试建议的软件包。您还应该关闭您提交的错误;-)。

相关内容