4

we used package openjdk-8-jre-headless. Last successful installation was 14.3.2019. Today 22.3.2019 Unable to locate package openjdk-8-jre-headless.

Was the package from debian/jessie-backports removed? renamed?

Thanks,

UPDATE: Thanks, It WAS working after adding archive.debian.org

BUT TODAY (26.3.2019): Location of packageS were moved AGAIN! That is TOTAL crazy.

Err http://deb.debian.org jessie-updates/main amd64 Packages
Err http://deb.debian.org jessie-updates/main amd64 Packages
Err http://deb.debian.org jessie-backports/main amd64 Packages
Err http://deb.debian.org jessie-updates/main amd64 Packages
404  Not Found
Err http://deb.debian.org jessie-backports/main amd64 Packages
404  Not Found
[91mW: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages  404  Not Found

Please, do you have new idea, how to fix?

user1722245
  • 1,677
  • 1
  • 15
  • 29

3 Answers3

16

Seems all the backports moved to the archive(https://lists.debian.org/debian-devel-announce/2019/03/msg00006.html)

I managed to fix it like this(dockerfile syntax):

sed -i -s '/debian jessie-updates main/d' /etc/apt/sources.list
echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
echo "Acquire::Check-Valid-Until false;" >/etc/apt/apt.conf.d/10-nocheckvalid
echo 'Package: *\nPin: origin "archive.debian.org"\nPin-Priority: 500' >/etc/apt/preferences.d/10-archive-pin

UPD 2019.03.28: jessie-updates gone too, updated the snippet above

BEWARE OF SECURITY RISKS: packages from archive.debian.org do not receive any security updates

Each
  • 428
  • 3
  • 7
  • 1
    Great, it WAS working until today. It doesnt work now :-( – user1722245 Mar 26 '19 at 11:57
  • FYI, I'm installing it manually like: wget -O /tmp/jdk-8u212-ojdkbuild-linux-x64.zip https://github.com/ojdkbuild/contrib_jdk8u-ci/releases/download/jdk8u212-b04/jdk-8u212-ojdkbuild-linux-x64.zip && \ unzip -d /usr/lib/jvm/ /tmp/jdk-8u212-ojdkbuild-linux-x64.zip && \ rm /tmp/jdk-8u212-ojdkbuild-linux-x64.zip – Timotei May 09 '19 at 11:52
3

It seems that there is a bad update from jessie-backports, nothing exists in jessie backports right now. Compare https://packages.debian.org/jessie-backports/allpackages to https://packages.debian.org/stretch-backports/allpackages

Update: https://lists.debian.org/debian-devel-announce/2019/03/msg00006.html?utm_source=dlvr.it&utm_medium=twitter (still trying to figure out what it means though)

Niklas B
  • 1,411
  • 13
  • 28
0

This dockerfile snippet works for me -

RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list

RUN apt-get -q update && apt-get -y -q install --no-install-recommends -t stretch-backports openjdk-8-jdk
Guillaume Jacquenot
  • 9,076
  • 5
  • 38
  • 47
Guest
  • 1