Skip to content

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

Open
@kortov

Description

@kortov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions