Skip to content

Cannot install Debian packages in trestletech/plumber #459

@ghost

Description

Installing curl Running apt-get update in a Dockerfile based on trestletech/plumber fails with the following error:

E: Repository 'http://cdn-fastly.deb.debian.org/debian testing InRelease' changed its 'Codename' value from 'buster' to 'bullseye'
The command '/bin/sh -c apt-get update && apt-get install -t unstable -y curl' returned a non-zero code: 10

Maybe a rebuild with a more recent version of debian/testing fixes the issue. However, I think the deeper issue is that a Docker image based on debian/testing will always be prone to instabilities. It would be great if we could have a trestletech/plumber image based on rocker/r-ver.

Example application or steps to reproduce the problem

Dockerfile:

FROM trestletech/plumber
RUN apt-get update \
&& apt-get install -t unstable -y curl
RUN apt-get install -y libxml2-dev
COPY . /api
EXPOSE 8000
ENTRYPOINT ["R", "-e", "pr <- plumber::plumb(commandArgs()[4]); pr$run(host='0.0.0.0', port=8000, swagger=TRUE)"]
CMD ["/api/plumber.R"]

Describe the problem in detail

$ docker build .
Step 1/8 : FROM trestletech/plumber
 ---> f9aa6e6553fb
Step 2/8 : RUN apt-get update && apt-get install -t unstable -y curl
 ---> Running in f8d9f02f20ac
Get:1 http://cdn-fastly.deb.debian.org/debian testing InRelease [117 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian sid InRelease [149 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian sid/main amd64 Packages.diff/Index [27.9 kB]
Ign:3 http://cdn-fastly.deb.debian.org/debian sid/main amd64 Packages.diff/Index
Get:4 http://cdn-fastly.deb.debian.org/debian sid/main amd64 Packages [8,389 kB]
Reading package lists...
E: Repository 'http://cdn-fastly.deb.debian.org/debian testing InRelease' changed its 'Codename' value from 'buster' to 'bullseye'
The command '/bin/sh -c apt-get update && apt-get install -t unstable -y curl' returned a non-zero code: 100

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: intermediateEnterprising community members could helpeffort: low< 1 day of workpriority: highHigh-confidence regression or severe bug affecting many users or current release work.theme: dockertype: bugMaintainers have validated that it is a real bug in the project code

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions