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

我怕爱的太早我们不能终老 提交于 2019-12-21 05:45:12

问题


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?


回答1:


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




回答2:


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)




回答3:


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


来源:https://stackoverflow.com/questions/55298245/missing-openjdk-8-jre-headles-http-deb-debian-org-debian-jessie-backports-mai

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!