alpine linux lighttpd安装缺少包

时间:2015-08-24 16:58:27

标签: linux lighttpd alpine

我按照http://wiki.alpinelinux.org/wiki/Setting_Up_Lighttpd_With_FastCGI上的文档关注Alpine linux上的istalling lighttpd但是在复制第一个命令时遇到问题:

apk add lighttpd php-common php-iconv php-json php-gd php-curl php-xml php-pgsql php-imap php-cgi fcgi

我收到以下错误:

ERROR: unsatisfiable constraints:
  lighttpd (missing):
    required by: world[lighttpd]
  php-cgi (missing):
    required by: world[php-cgi]
  php-common (missing):
    required by: world[php-common]
  php-curl (missing):
    required by: world[php-curl]
  php-gd (missing):
    required by: world[php-gd]
  php-iconv (missing):
    required by: world[php-iconv]
  php-imap (missing):
    required by: world[php-imap]
  php-json (missing):
    required by: world[php-json]
  php-pgsql (missing):
    required by: world[php-pgsql]
  php-xml (missing):
    required by: world[php-xml]
scw-f9c40f:~# apk add lighttpd

任何想法?

2 个答案:

答案 0 :(得分:7)

聚会迟到但总比没有好。:)

问题是您尝试安装的软件包很少位于testing存储库中(请参阅@testing)。

跟随Dockerfile

FROM alpine:3.2
ADD repositories /etc/apk/repositories
RUN apk add --update lighttpd@testing php-common@testing php-iconv@testing php-json@testing \
                     php-gd@testing php-curl@testing php-xml@testing php-pgsql@testing \
                     php-imap@testing php-cgi@testing fcgi

repositories

http://dl-4.alpinelinux.org/alpine/v3.2/main
@testing http://dl-4.alpinelinux.org/alpine/edge/testing

你应该没事。

答案 1 :(得分:0)

正在运行

apk update

为我解决了这个问题。