Warm tip: This article is reproduced from serverfault.com, please click

Missing openjdk-8-jre-headles http://deb.debian.org/debian/ jessie-backports/main

发布于 2019-03-22 11:03:15

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?

Questioner
user1722245
Viewed
0
Each 2019-03-28 04:38:46

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