高山无法满足的约束:缺少包裹 [英] Alpine unsatisfiable constraints: missing packages
本文介绍了高山无法满足的约束:缺少包裹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试基于 alpine:3.7
创建一个docker映像,但是在安装某些 apk add $软件包时却出错了。 c $ c>。
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 ofapache2
package;host
is a part ofbind-tools
package;lpr
is a part ofcups-client
package;time
is already in alpine image. It usesbusybox
'stime
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屋!
查看全文