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

java-k8s Dockerfile using legacy Debian Jessie backports #17

Open
archelangelo opened this issue Jun 9, 2019 · 1 comment
Open

java-k8s Dockerfile using legacy Debian Jessie backports #17

archelangelo opened this issue Jun 9, 2019 · 1 comment

Comments

@archelangelo
Copy link

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.

@alemorcuq
Copy link

Hi, @archelangelo.

Thank you for reporting this. I've created an internal task to update the tutorial. I can't give you an ETA, but I'll come back to you when it's done.

In the meantime, you may try using the minideb-extras:stretch image instead of the jessie one, and installing the packages from the stretch repos:

FROM bitnami/minideb-extras:stretch-r386

RUN install_packages ca-certificates-java openjdk-8-jdk-headless bzip2

Regards,
Alejandro

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

No branches or pull requests

2 participants