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

dockerfile 6.3.3 doesn't build due some broken apt repo #23

Open
kortov opened this issue Oct 9, 2019 · 0 comments
Open

dockerfile 6.3.3 doesn't build due some broken apt repo #23

kortov opened this issue Oct 9, 2019 · 0 comments

Comments

@kortov
Copy link
Contributor

kortov commented Oct 9, 2019

I always get an error during buildng dockerfile

tep 53/90 : RUN apt-get update && apt-get install -y wget coreutils unzip mysql-client  && rm -rf /var/lib/apt/lists/*
 ---> Running in 010830bbe9c9
Ign http://deb.debian.org jessie InRelease
Get:1 http://deb.debian.org jessie-updates InRelease [16.3 kB]
Get:2 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org jessie-backports InRelease
Get:3 http://deb.debian.org jessie Release.gpg [1652 B]
Ign http://deb.debian.org jessie-backports Release.gpg
Get:4 http://deb.debian.org jessie Release [77.3 kB]
Ign http://deb.debian.org jessie-backports Release
Err http://deb.debian.org jessie-backports/main amd64 Packages
  
Err http://deb.debian.org jessie-backports/main amd64 Packages
  
Err http://deb.debian.org jessie-backports/main amd64 Packages
  
Get:5 http://deb.debian.org jessie-updates/main amd64 Packages [20 B]
Err http://deb.debian.org jessie-backports/main amd64 Packages
  404  Not Found
Get:6 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Get:7 http://security.debian.org jessie/updates/main amd64 Packages [886 kB]
W: There is no public key available for the following key IDs:
AA8E81B4331F7F50
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Fetched 10.1 MB in 1min 44s (97.1 kB/s)
ERROR: Service 'knowage' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y wget coreutils unzip mysql-client  && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

I guess this stfo answer explains the problem
And I used this stfo answer

And I ended up with this code

RUN echo "deb [check-valid-until=no] http://cdn-fastly.deb.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list
RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list

#install required packages and clean up to save space
RUN apt-get -o Acquire::Check-Valid-Until=false update && apt-get install -y wget coreutils unzip mysql-client  && rm -rf /var/lib/apt/lists/*

instead of RUN apt-get -o Acquire::Check-Valid-Until=false update && apt-get install -y wget coreutils unzip mysql-client && rm -rf /var/lib/apt/lists/*

I don't know the right solution for it, just popped the problem

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