3

我尝试将 vips-dev 包安装到 alpine linux 3.8。但得到以下错误:

docker run -it --rm alpine:3.8 /bin/sh -c "apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing vips-dev"

fetch http://dl-3.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  pc:fftw3 (missing):
    required by: vips-dev-8.7.4-r1[pc:fftw3] vips-dev-8.7.4-r1[pc:fftw3] vips-dev-8.7.4-r1[pc:fftw3]

如何解决?

4

1 回答 1

16

这是一个已知的打包问题vips-devedge/testinghttps:
//bugs.alpinelinux.org/issues/9561

作为一种解决方法,请确保将两者edge/mainedge/testing存储库都添加到您的 apk 命令中:

sudo docker run -it --rm alpine:3.8 /bin/sh -c "apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing --repository http://dl-3.alpinelinux.org/alpine/edge/main vips-dev"

更新,30/5/19:

vips-dev已从edge/testing分支移至edge/community,并更新至版本 8.8.0-r0。因此,更新后的命令行为:

sudo docker run -it --rm alpine:3.8 /bin/sh -c "apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community --repository http://dl-3.alpinelinux.org/alpine/edge/main vips-dev"
于 2019-04-13T13:18:42.720 回答