高山无法满足的约束:缺少包裹 [英] Alpine unsatisfiable constraints: missing packages

查看:190
本文介绍了高山无法满足的约束:缺少包裹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试基于 alpine:3.7 创建一个docker映像,但是在安装某些 apk add

I am trying to create a docker image based on alpine:3.7, but I get errors while installing some packages with apk add.

示例:

ERROR: unsatisfiable constraints:
  apache2-suexec (missing):
    required by: world[apache2-suexec-custom]
  host (missing):
    required by: world[host]
  lpr (missing):
    required by: world[lpr]
  time (missing):
    required by: world[time]

原因是这些软件包在高山存储库中尚不存在。我该如何解决这些问题?有任何可从中下载它们的存储库吗?

The cause is that these packages do not exist in alpine repositories yet. How can I solve these issues? Is there any repository from which I can download them?

我正在使用此行

FROM alpine:3.7

RUN apk update \
    && apk upgrade \
    && apk --no-cache add --update tcl apache2 apache2-suexec ca-certificates \ 
    apk-tools curl build-base supervisor lpr time dcron host rsync libxml2-utils libxslt


推荐答案

以下软件包存在问题: apache2-suexec 主机 lpr 时间

You have an issue with the following packages: apache2-suexec, host, lpr and time.

Alpine的软件包结构不同于主要的Linux操作系统:

Alpine has some other package structure than main Linux OSs:


  • apache2-suexec apache2 软件包的一部分;

  • host bind-tools 软件包的一部分;

  • lpr cups-client 软件包的一部分;

  • 时间已经在高山图像中了。它使用 busybox time 实用工具。

  • apache2-suexec is a part of apache2 package;
  • host is a part of bind-tools package;
  • lpr is a part of cups-client package;
  • time is already in alpine image. It uses busybox's time utility.

因此,最终的 Dockerfile 是:

FROM alpine:3.7

RUN apk update \
    && apk upgrade \
    && apk --no-cache add --update tcl apache2 ca-certificates \ 
    apk-tools curl build-base supervisor cups-client dcron bind-tools rsync libxml2-utils libxslt

这篇关于高山无法满足的约束:缺少包裹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆