Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

java-k8s Dockerfile using legacy Debian Jessie backports #17

@archelangelo

Description

@archelangelo

I was following the Deploy A Java Application On Kubernetes With Helm tutorial and encountered the following error message when running docker build build-app -t jhipster

Step 3/6 : RUN echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list &&     install_packages ca-certificates-java/jessie-backports openjdk-8-jdk-headless bzip2
 ---> Running in 9a2993d6777d
W: Failed to fetch http://http.debian.net/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.
apt failed, retrying
W: Failed to fetch http://http.debian.net/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.
apt failed, retrying
W: Failed to fetch http://http.debian.net/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.
The command '/bin/sh -c echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list &&     install_packages ca-certificates-java/jessie-backports openjdk-8-jdk-headless bzip2' returned a non-zero code: 100

It seems that the jessie-backports source was recently removed. I then tried using http://archive.debian.org/debian as the source but got this error:

Step 3/6 : RUN echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list &&     install_packages ca-certificates-java/jessie-backports openjdk-8-jdk-headless bzip2
 ---> Running in 2b914bb08812
E: Release file for http://archive.debian.org/debian/dists/jessie-backports/InRelease is expired (invalid since 110d 2h 21min 18s). Updates for this repository will not be applied.
apt failed, retrying
E: Release file for http://archive.debian.org/debian/dists/jessie-backports/InRelease is expired (invalid since 110d 2h 21min 23s). Updates for this repository will not be applied.
apt failed, retrying
E: Release file for http://archive.debian.org/debian/dists/jessie-backports/InRelease is expired (invalid since 110d 2h 21min 28s). Updates for this repository will not be applied.
The command '/bin/sh -c echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list &&     install_packages ca-certificates-java/jessie-backports openjdk-8-jdk-headless bzip2' returned a non-zero code: 100

I also tried using newer stretch-backports but got this error:

Step 3/6 : RUN echo "deb http://http.debian.net/debian stretch-backports main" >> /etc/apt/sources.list &&     install_packages ca-certificates-java/stretch-backports openjdk-8-jdk-headless bzip2
 ---> Running in 138ec0113c33
Reading package lists...
Building dependency tree...
Reading state information...
Package openjdk-8-jdk-headless is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

apt failed, retrying
E: Release 'stretch-backports' for 'ca-certificates-java' was not found
E: Package 'openjdk-8-jdk-headless' has no installation candidate
Reading package lists...
Building dependency tree...
Reading state information...
Package openjdk-8-jdk-headless is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Release 'stretch-backports' for 'ca-certificates-java' was not found
E: Package 'openjdk-8-jdk-headless' has no installation candidate
apt failed, retrying
Reading package lists...
Building dependency tree...
Reading state information...
Package openjdk-8-jdk-headless is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Release 'stretch-backports' for 'ca-certificates-java' was not found
E: Package 'openjdk-8-jdk-headless' has no installation candidate
The command '/bin/sh -c echo "deb http://http.debian.net/debian stretch-backports main" >> /etc/apt/sources.list &&     install_packages ca-certificates-java/stretch-backports openjdk-8-jdk-headless bzip2' returned a non-zero code: 100

So I guess there some related changes that need to be made.

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