linuxalpine-linuxalpine-package-keeper

unsatisfiable constraints error when installing pdftk alpine linux


When trying to install pdftk apk throws this error.

ERROR: unsatisfiable constraints:
  pdftk (missing):
    required by: world[pdftk]

Here is the whole output:

/opt/app # apk add pdftk
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  pdftk (missing):
    required by: world[pdftk]

I'm new to apk and not sure what the issue means or how to fix it.


Solution

  • The pdftk package for Alpine was discontinued starting with Alpine v3.9.

    For using pdftk on Alpine, you could build the package from source, as suggested.
    Alternatively, if you're comfortable with using an older Alpine version, you should be able to use it on Alpine V3.8.

    Unfortunately, you won't be able to install pdftk from Alpine 3.8 repositories on a newer Alpine version due to unsatifiable constraints.