Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing apt sources #1241

Open
dipk-mish7 opened this issue Feb 29, 2024 · 1 comment
Open

Missing apt sources #1241

dipk-mish7 opened this issue Feb 29, 2024 · 1 comment

Comments

@dipk-mish7
Copy link

Hi Team, I was wondering if any of you have got this issue in past.\

I tried to write a svix dockerfile using rust 1.76.0 and found that this image has no longer /etc/apt/sources.list, This is present in 1.70.0 image..
I was using rust 1.70.0 image in my dockerfile as base image for svix.
This had /etc/apt/sources.list file in it and I was updating my jfrog artifactory packages in it.. but for some reasons 1.76.0 version of docker image of rust do not have this..
If you have encountered this issue then could you please assist me.

@dipk-mish7
Copy link
Author

Below is the sample Dockerfile which was working fine with rust 1.70.0 base image

FROM artifactory.myorg.com/rust:1.70.0 AS build
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && mv /etc/apt/sources.list.d /etc/apt/sources.list.bak.d
RUN sh -c "echo 'deb https://myuser:mypassword@artifactory.myorg.com/artifactory/debian-main-remote bullseye main' | tee -a /etc/apt/sources.list"
RUN apt-get update && apt-get install -y build-essential=12.* checkinstall=1.* zlib1g-dev=1:* pkg-config=0.29.* libssl-dev=* --no-install-recommends

But fails for below as source.list is not present anymore

FROM artifactory.myorg.com/rust:1.76.0 AS build
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && mv /etc/apt/sources.list.d /etc/apt/sources.list.bak.d
RUN sh -c "echo 'deb https://myuser:mypassword@artifactory.myorg.com/artifactory/debian-main-remote bullseye main' | tee -a /etc/apt/sources.list"
RUN apt-get update && apt-get install -y build-essential=12.* checkinstall=1.* zlib1g-dev=1:* pkg-config=0.29.* libssl-dev=* --no-install-recommends

Is there anything I can do here.. I tried to do workaround by creating this source.list manually but I get below error when I do that.

W: GPG error: https://artifactory.myorg.com/artifactory/debian-main-remote bullseye InRelease: At least one invalid signature was encountered.
E: The repository 'https://artifactory.myorg.com/artifactory/debian-main-remote bullseye InRelease' is not signed.
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/.deb /var/cache/apt/archives/partial/.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant