For question related to installing packages on the Alpine Linux distribution via the Alpine Package Keeper — or apk.
Questions tagged [alpine-package-keeper]
49 questions
1
vote
2 answers
npm command not found error while running docker container
I am trying some something out with gitlab-runner image,
FROM gitlab/gitlab-runner:alpine
WORKDIR /app
COPY . /app
RUN apk add yarn && yarn install
RUN yarn --version # this layer prints 1.16.0
RUN ng build --prod
…

Dan
- 651
- 1
- 14
- 31
1
vote
0 answers
ERROR: unsatisfiable constraints: while installing package in alpine
I am trying to build a docker image based on Alpine and I need to install few packages in it. Here is exactly what I am trying to do:
FROM alpine:latest
RUN apk --no-cache add ca-certificates=20161130-r2 openssl=1.0.2k-r0
But when I run docker…

Pensu
- 3,263
- 10
- 46
- 71
1
vote
2 answers
Can't install package on alpine though I can see it in the ui
I was running php7 on alpine without a hitch for the last week till today when I rebuilt my image and now nothing works. I get the errors:
/ # apk add php7
ERROR: unsatisfiable constraints:
php7 (missing):
required by: world[php7]
for every…

Jonathan
- 10,792
- 5
- 65
- 85
1
vote
1 answer
How to add Alpine Linux repositories when their domain is expired?
Today, I was trying to build a Docker container using Alpine Linux 3.2. However, the apk command was not successful during building the container image because it could not retrieve the APKINDEX file.
I tried to add other dl- links to the…

imriss
- 1,815
- 4
- 31
- 46
0
votes
0 answers
How to include dependencies in a python build wheel file
I have a python app that I am trying to package for postmarketos via abuild. I got the abuild to create the package, but I have a single dependency that I must install with pip because the apk repositories do not contain this package. Does anyone…

Patrick McDonald
- 1
- 1
0
votes
0 answers
Alpine APK: Unable to use repository tags when creating a virtual dependency
Due to rather minimalistic wiki/docs for Alpine Package Keeper, I have failed to determine why it appears to refuse repository tags when specifying packages part of a virtual dependency.
The question is, is this by design, and if so, what is the…

Tadas S
- 1,955
- 19
- 33
0
votes
0 answers
aport CBUILDROOT: unable to read database state: No such file directory
I want to build cross compiler for aarcht64 using aports. Im using x86_64 host by the way and below are some steps to reproduce the issue
clone https://github.com/alpinelinux/aports
export BARCH=aarch64 && CBUILDROOT=~/sysroot-$BARCH…

user3453753
- 357
- 4
- 15
0
votes
1 answer
Double ambersand operator in alpine not working as expected
The following script
#!/bin/sh -e
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.32-r0/glibc-2.32-r0.apk
apk add glibc-2.32-r0.apk…

pkaramol
- 16,451
- 43
- 149
- 324
0
votes
1 answer
Alpine image error finding repository/packages while running docker build on local machine
I have a Dockerfile that builds and runs successfully in Azure pipelines (using docker build task)
When I try to run docker build on my local machine with the same file, apk add [package name] fails, seemingly with an issue finding the alpine…

klettg
- 21
- 5
0
votes
0 answers
Docker: How to ADD a service via ENV variables?
I have built a Docker Cron Environment to run Cronjobs based on alseambusher/crontab-ui using alpine:3.15.3 & it works great.
For it to work I have had to install a number of things via the Dockerfile, editing it & adding python so it could run a…

LostOnTheLine
- 88
- 8
0
votes
0 answers
Docker Alpaline Cache issue, apk add curl not taking latest version
After running first time, the docker cached curl script. now when I again run the pipepline docker cached and not taking latest version.
RUN apk update && apk add curl
--no-cache is not working
Any other solution, I want this command to execute run…
0
votes
0 answers
Why does apk add wget give me code 2 error?
I am running the following in my docker file
FROM alpine:latest
RUN apk update && apk add --no-cache wget
I get the following error
2 errors; 14 distinct packages available
ERROR: executor failed running [/bin/sh -c apk update && apk…

BankMan101
- 109
- 9
0
votes
1 answer
alpine linux apk installation error in Dockerfile
I am trying to execute the following code in a Dockerfile:
FROM alpine:3.7
RUN apk update && apk add --no-cache busybox musl prometheus-node-exporter
RUN rc-update add prometheus-node-exporter default
RUN rc-service prometheus-node-exporter…

Bluz
- 5,980
- 11
- 32
- 40
0
votes
1 answer
apk python packages not installing in Alpine Docker Image
I have a dockerfile as below:
FROM python:3.7.5-alpine3.10
RUN apk update
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
RUN apk add --no-cache cython3
CMD [ "sh", "ls"]
When I got into the container with docker run -it --rm mycontainer /bin/sh…

user2242044
- 8,803
- 25
- 97
- 164
0
votes
1 answer
Upgrade to postgres96 on Alpine (/usr/bin/pg_dump: No such file or directory)
I'm trying to upgrade postgres locally so I don't get a version mismatch error. This is what i do:
echo "http://dl-5.alpinelinux.org/alpine/v3.5/main" >> /etc/apk/repositories;
apk update
bash-4.3# apk add postgresql-dev
(1/4) Installing…

rix
- 10,104
- 14
- 65
- 92